random()
Either generates a random number or pulls a random value from an array.
This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 79 times.opt_max
is 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_truncate
and the maximum will come from arrOrMinOrMax
thus setting 0
to arrOrMinOrMax
.false
true
-ish and arrOrMinOrMax
wasn't an array the returned value will be truncated.arrOrMinOrMax
is an array a random value from the array will be returned, otherwise a random number in the given range will be returned.