// Path: datagen/src/main/java/io/qala/datagen/RandomShortApi.java
// public static int integer(int max) {
//     return between(0, max).integer();
// }


import java.util.stream.Stream;
import static io.qala.datagen.RandomShortApi.integer;
package io.qala.datagen.junit.jupiter;



class RandomIntArgumentProvider extends RandomizedArgumentProvider<RandomInt> {
    private RandomInt annotation;

    @Override
    public void accept(RandomInt annotation) {
        this.annotation = annotation;
    }

    @Override Stream<Object[]> getValueWithDescription() {
        return Stream.of(annotation).map(RandomIntArgumentProvider::generateParams);
    }
    @Override Stream<Object> getValue() {
        return Stream.of(annotation).map(RandomIntArgumentProvider::generateParam);
    }

    static int generateParam(RandomInt annotation) {
// Path: datagen/src/main/java/io/qala/datagen/RandomShortApi.java
// public static int integer(int max) {
//     return between(0, max).integer();
// }


// Path: junit5/src/main/java/io/qala/datagen/junit/jupiter/RandomIntArgumentProvider.java
import java.util.stream.Stream;
import static io.qala.datagen.RandomShortApi.integer;

package io.qala.datagen.junit.jupiter;



class RandomIntArgumentProvider extends RandomizedArgumentProvider<RandomInt> {
    private RandomInt annotation;

    @Override
    public void accept(RandomInt annotation) {
        this.annotation = annotation;
    }

    @Override Stream<Object[]> getValueWithDescription() {
        return Stream.of(annotation).map(RandomIntArgumentProvider::generateParams);
    }
    @Override Stream<Object> getValue() {
        return Stream.of(annotation).map(RandomIntArgumentProvider::generateParam);
    }

    static int generateParam(RandomInt annotation) {
        return integer(annotation.min(), annotation.max());