shuffle
打乱数组
&reftitle.description;
trueshuffle
arrayarray
本函数打乱(随机排列单元的顺序)一个数组。
&caution.cryptographically-insecure;
&reftitle.parameters;
array
待操作的数组。
&reftitle.returnvalues;
&return.true.always;
&reftitle.changelog;
&Version;
&Description;
7.1.0
内置的随机数产生算法从 libc rand 函数改成梅森旋转伪随机数生成算法。
&reftitle.examples;
shuffle 例子
]]>
&reftitle.notes;
¬e.no-key-association;
¬e.reset-index;
&reftitle.seealso;
Random\Randomizer::shuffleArray
Random\Randomizer::shuffleBytes
Random\Randomizer::pickArrayKeys
&seealso.array.sorting;