Tools/random/shuffle

random/shuffle

Return a randomly shuffled copy of a list.

Free / no pricing configured

What it does

Returns the items in a new random order, leaving the input unchanged.

Primary use cases

  • Randomizing turn order, playlists, or test cases.
  • Producing a random permutation of a set.

Good to know

Every permutation is equally likely. Uses a cryptographically-strong generator. Non-deterministic.

Parameters

itemsarrayrequired

The list of items to shuffle.

random/shuffle — Faro