shuffle

This block is part of the array group and was last modified in core v10.4.28.

shuffle v10.4.28

Shuffles the array in a random sorting.

In pins 1
  • array required
    array

    The array to be shuffled.

Out pins 1
  • Array
    array

    The shuffled array.

Returns a COPY of the array with the elements in uniformly random order; the input is not mutated and the result differs between runs.

array sort random
sort random

A typical wiring for shuffle: with values feeds the array pin; the array out pin feeds length.

Studio canvas example for the shuffle block: typical wiring for shuffle.

Version history

Introduced in v10.4.28.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group