Method Array.randomize
Randomize elements in an array
-
Syntax
undefined Array.randomize([ Boolean ru ])
Reorders the elements in the array in-place in a random order. Elements which have the value ofundefinedare automatically arranged last ifru(randomize undefined) is not true. -
Parameters
Boolean ru(Optional)- Set to true if you want to randomize
undefinedvalues.
-
Return value
No explicit return value. Default value of
undefinedis returned. -
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
