|
Web Development : JavaScripts : Games

Unique Random Numbers
Submitted: 07/08/2002
By: Premshree Pillai
This JavaScript picks up a number of unique random elements from an array.
For example; if you have an array myArray consisting of 10 elements and want to pick 5 unique random elements. Suppose initially myArray[3] is picked randomly, then myArray[3] should not be picked again.
System Requirements:
License: freeware
Language: Javascript
Run the code -
See the code
|