Reference

Class

RiTa

Name

randomOrdering

Description Returns a randomly ordered array of unique integers from 0 to the argument supplied.
The JavaScript version also accepts an array to be re-ordered as the sole parameter
Example
array = RiTa.randomOrdering(5);
Parameters
intnumElements
Returns
int[]unique integers from 0 to numElements-1
(or the reordered array when supplied as a parameter)
Syntax
RiTa.randomOrdering(numElements);
RiTa.randomOrdering(array); // JS only
Platform Java / JavaScript