Shuffle 1D Array VI

Owning Palette: Array VIs and Functions

Requires: Base Development System

Rearranges the elements of a 1D array in a pseudorandom order.

This VI uses a uniform shuffle so that every element has an equal chance of ending up in any position of the array.

Example

 Add to the block diagram  Find on the palette
array specifies the 1D array with elements that you want to shuffle. The array can be a 1D array of any data type.
shuffled array returns a shuffled version of the 1D array.

Example

Refer to the Malleable VIs Basics.lvproj in the labview\examples\Malleable VIs\Basics directory for an example of using the Shuffle 1D Array VI.

 Open example  Find related examples