Arbitrary.apply(int size)
Returns a generator for objects of type T.
Gen.choose(char... characters)
Chooses a char from all chars in the array
Gen.choose(char min,
char max)
Chooses a char between min and max, bounds inclusive and chars distributed according to the underlying random
number generator.
Gen.choose(double min,
double max)
Chooses a double between min and max, bounds inclusive and numbers distributed according to the distribution
of the underlying random number generator.
Chooses an int between min and max, bounds inclusive and numbers distributed according to the distribution of
the underlying random number generator.
Gen.choose(long min,
long max)
Chooses a long between min and max, bounds inclusive and numbers distributed according to the distribution of
the underlying random number generator.
Chooses an enum value from all the enum constants defined in the enumerated type.
Chooses a value from all values in the iterable
Chooses a value from all values in the array.
A failing generator which throws a RuntimeException("failed").
A failing generator which throws a RuntimeException.
Returns a generator based on this generator which produces values that fulfill the given predicate.
Chooses one of the given generators according to their frequency.
Chooses one of the given generators according to their frequency.
Intersperse values from this generator instance with those of another.
A generator which constantly returns t.
Gen.of(T seed,
Function<? super T,? extends T> next)
Randomly chooses one of the given generators.
Randomly chooses one of the given generators.