shuffleShuffle an array
&reftitle.description;
trueshufflearrayarray
This function shuffles (randomizes the order of the elements in) an array.
&caution.cryptographically-insecure;
&reftitle.parameters;
array
The array.
&reftitle.returnvalues;
&return.true.always;
&reftitle.changelog;
&Version;&Description;7.1.0
The internal randomization algorithm has been changed to use the Mersenne Twister Random Number Generator instead of the libc rand function.
&reftitle.examples;
shuffle example
]]>
&reftitle.notes;
¬e.no-key-association;
¬e.reset-index;
&reftitle.seealso;
Random\Randomizer::shuffleArrayRandom\Randomizer::shuffleBytesRandom\Randomizer::pickArrayKeys&seealso.array.sorting;