function returns a random number from a grouping of numeric values expressed as an in list
. You can use the seed
function to initialize the random number generation. A non-integer can appear as part of the in list, but if it is part of a range, both the low and high values of the range will be converted to integers and the function will return a uniformly distributed random integer in that range.
The function returns a random value from the values of the in list. The function will return default
if there were no applicable values to construct a group of valid numbers from which to pick a random number. If a value appears more than once in the in list, it will have a higher probability of being selected by the function.