Optional
seedOrRandom: number | RandomNumberGenerator = Math.randomControl the random number generator used by the Random class instance. Pass a random number generator function with a uniform distribution over the half-open interval [0, 1[. If seed will pass it to ml-xsadd to create a seeded random number generator. If undefined will use Math.random.
Returns an array of elements choosen from a list
The values to choose from. If a number, the list will be a range of integer from 0 to that number.
Optional
options: ChoiceOptionsoption object
The choosen values
Optional
options: ChoiceOptionsDraw a random integer from a uniform distribution on [low, high). If only low is specified, the number is drawn on [0, low)
The lower bound of the uniform distribution interval.
Optional
high: numberThe higher bound of the uniform distribution interval.
Classdesc
Random class