ArbitraryVariable
data class ArbitraryVariable(val default: Serializable, values: List<Serializable?>) : AbstractPrintableVariable<Serializable?>
A variable that can take any value from an arbitrary, finite set.
This implementation stores values in an immutable ordered set. Values and the default are non-nullable: an ArbitraryVariable always contains at least a default value and a (possibly empty) set of candidate values.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Returns a random element of the Iterable using the provided randomGenerator.
Link copied to clipboard
Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.
Link copied to clipboard