- shuffle
Shuffle array
- Using Random behind the scenes.
examples/arrays/shuffle.cr
planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter"] puts planets puts planets.shuffle puts planets
["Mercury", "Venus", "Earth", "Mars", "Jupiter"] ["Venus", "Earth", "Mercury", "Mars", "Jupiter"] ["Mercury", "Venus", "Earth", "Mars", "Jupiter"]