- Companion
- class
Type members
Classlikes
Value members
Concrete methods
Randomly selects one of the given elements.
Randomly selects one of the given elements.
- Value Params
- as
Possible elements. MUST NOT BE EMPTY.
Randomly selects one of the given elements.
Randomly selects one of the given elements.
- Value Params
- as
Possible elements. MUST NOT BE EMPTY.
Generate an int ∈ [0,bound).
Generate an int ∈ [0,bound).
- Value Params
- bound
Upper-bound (exclusive). > 0
Generate a long ∈ [0,bound).
Generate a long ∈ [0,bound).
- Value Params
- bound
Upper-bound (exclusive). > 0
Randomly selects one of the given elements.
Randomly selects one of the given elements.
- Value Params
- as
Possible elements. MUST NOT BE EMPTY.
Ensures that an element is never chosen more than once per n elements.
Ensures that an element is never chosen more than once per n elements.
fairlyDistributedSeq(1, 2, 3)(6) may return [1,3,2,2,1,3] or [3,2,1,3,2,1] but never [1,1,1,1,2,3].
Ensures that an element is never chosen more than once per n elements.
Ensures that an element is never chosen more than once per n elements.
fairlyDistributedSeq(1, 2, 3)(6) may return [1,3,2,2,1,3] or [3,2,1,3,2,1] but never [1,1,1,1,2,3].
Randomly either generates a new value, or chooses one from a known set.
Randomly either generates a new value, or chooses one from a known set.
Generates a sequence of elements in a fixed order.
Generates a sequence of elements in a fixed order.
Example: [a,b,c] can generate [a,b,c], [a,b,b,b,c,c], etc. but never [b,a,c].
- Value Params
- dropElems
Whether or not the generator can drop elements. (eg. drop b and return [a,c])
- emptyResult
Whether or not the generator can return an empty vector as a result.
- maxDups
The maximum number of consecutive, duplicate elements (can be 0).
- orderedElems
Legal elements in a relevant order.
Generates a non-empty subset, unless the underlying seq is empty (in which case this returns an empty seq too).
Generates a non-empty subset, unless the underlying seq is empty (in which case this returns an empty seq too).