Unique Random Numbers

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. If you want to pick 4 numbers, call the function like: pickNums(4).

 
Visit Site:
Unique Random Numbers
Filed in:
JavaScript / Scripts & Programs / Randomizing / Combination
Date Added:
Aug 6, 2002 
Last Updated:
Feb 11, 2009 

License and Pricing Information

Publisher site visits: 2,800
Average rating: 1.00
Total ratings: 1

Add/Edit Your Review

Reviews and Ratings

Very long winded code.
Rating: 1 - Poor (Apr 17th, 2006)

Publisher Info

Author:
 
Other listings by this publisher

Share this Listing