|
|
|
shuffle array
outputs a new array of the same type and length as the input, but with randomly shuffled elements.
Examples:
show shuffle {1 2 3 4 5 6 7 8 9} ;{7 2 9 4 5 1 6 8 3} show shuffle FloatArray {1 2 3 4 5 6 7 8 9} ;{1 5 4 7 2 6 8 3 9} show shuffle IntArray {1 2 3 4 5 6 7 8 9} ;{5 1 3 6 9 8 4 7 2} show shuffle Int16Array {1 2 3 4 5 6 7 8 9} ;{8 5 7 2 6 3 1 4 9} |
|
|
|