ArbitraryVariable
data class ArbitraryVariable(val default: Any, values: List<Any?>) : AbstractPrintableVariable<Any?>
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.
Properties
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.