Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

List.shuffle

shuffle()

Description

Randomize the order of items.

SecurityThis function is not random enough for cryptographic or security-related uses.

['a', 'b', 'c', 'd', 'e'].shuffle();
//= ['d', 'a', 'c', 'e', 'b']

See Also