For example; if you have an array myArray consisting of 10 elements and want to pick 5 unique random elements. Suppose initially myArray is picked randomly, then myArray should not be picked again.
If you want to pick 4 numbers, call the function like this :
Could be useful :-)
Here's an example :
Reload the page to see a set of another unique random numbers.
© 2002 Premshree Pillai.