Picking random numbers using JavaScript - Taking numbers from a list

They have: 5,633 posts

Joined: Jan 1970

I want to create a script that randomly picks a number from a list of 5 nums (eg. 1,2,3,4,5) then remove it from the list. Then repeat this process untill all the nums have been randomly picked.

Preferably I would like to store these numbers in an Array if this can be done.

----------
[email protected]
vegas.com.au/~jasper

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I'm not really sure on this one, I'll keep an eye out and see what I can find. Smiling

----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.