mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-08 03:55:53 +08:00
228 B
228 B
shuffle
// usage
chance.shuffle(array)
Given an array, scramble the order and return it.
chance.shuffle(['alpha', 'bravo', 'charlie', 'delta', 'echo']);
=> ['echo', 'delta', 'alpha', 'charlie', 'bravo']