Riffles the elements in the input array X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • c1dcdb.png X

    X is the complex input array to riffle.

  • ci32.png seed

    seed is the seed value at which to riffle X. The default is –1.

  • i1dcdb.png Riffled {X}

    Riffled {X} returns X with riffled elements.

  • i1di32.png Riffled Index

    Riffled Index returns the corresponding index in X for each element in Riffled {X}.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • This VI riffles the input array by randomly selecting two elements in X, swapping those elements, and then repeating this process n times, where n is the length of X.