Either generates a random number or pulls a random value from an array.This function is valid in v2.0.0 to v2.22.1. This function has been downloaded 40 times.
opt_maxis either not given or boolean this will be seen as the maximum value. Otherwise this will be seen as the minimum value that can be returned.
opt_truncateand the maximum will come from
arrOrMinOrMaxwasn't an array the returned value will be truncated.
arrOrMinOrMaxis an array a random value from the array will be returned, otherwise a random number in the given range will be returned.