Skip to Content
๐ŸŽฒ Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

shuffle

// usage randBox.shuffle(array)

Given an array, scramble the order and return it.

randBox.shuffle(['alpha', 'bravo', 'charlie', 'delta', 'echo']); => ['echo', 'delta', 'alpha', 'charlie', 'bravo']
Last updated on: