Record that encapsulates all parameters required for data generation
A generator that generates a random value in the given (inclusive) range.
A generator that generates a random value in the given (inclusive) range. If the range is invalid, the generator will not generate any value.
Generates numbers within the given inclusive range, with extra weight on zero, +/- unity, both extremities, and any special numbers provided.
Generates numbers within the given inclusive range, with extra weight on zero, +/- unity, both extremities, and any special numbers provided. The special numbers must lie within the given range, otherwise they won't be included.
Generates a container of any type for which there exists an implicit
Buildable
instance.
Generates a container of any type for which there exists an implicit
Buildable
instance. The elements in the container will
be generated by the given generator. The size of the container is
bounded by the size parameter used when generating values.
Generates a non-empty container of any type for which there exists an
implicit Buildable
instance.
Generates a non-empty container of any type for which there exists an
implicit Buildable
instance. The elements in the container
will be generated by the given generator. The size of the container is
bounded by the size parameter used when generating values.
Generates a container of any type for which there exists an implicit
Buildable
instance.
Generates a container of any type for which there exists an implicit
Buildable
instance. The elements in the container will
be generated by the given generator. The size of the generated container
is given by n
.
A generator that never generates a value
Chooses one of the given generators with a weighted random distribution
Generates a list of random length.
Generates a list of random length. The maximum length depends on the
size parameter. This method is equal to calling
containerOf[List,T](g)
.
Generates a non-empty list of random length.
Generates a non-empty list of random length. The maximum length depends
on the size parameter. This method is equal to calling
containerOf1[List,T](g)
.
Generates a list of the given length.
Generates a list of the given length. This method is equal to calling
containerOfN[List,T](n,g)
.
Wraps a generator lazily.
Wraps a generator lazily. The given parameter is only evalutated once, and not until the wrapper generator is evaluated.
Generates negative numbers of uniform distribution, with an lower bound of the negated generation size parameter.
Picks a random generator from a list
Picks a random value from a list
Creates a generator that can access its generation parameters
A generator that picks a given number of elements from a list, randomly
A generator that picks a given number of elements from a list, randomly
Generates positive numbers of uniform distribution, with an upper bound of the generation size parameter.
Creates a resized version of a generator
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Takes a function and returns a generator that generates arbitrary results of that function by feeding it with arbitrarily generated input parameters.
Sequences generators.
Sequences generators. If any of the given generators fails, the resulting generator will also fail.
Creates a generator that can access its generation size
A generator that picks a random number of elements from a list
A generator that picks a random number of elements from a list
A generator that always generates the given value
Wraps a generator for later evaluation.
Wraps a generator for later evaluation. The given parameter is evaluated each time the wrapper generator is evaluated.
Contains combinators for building generators.