|
-
May 7th, 2007, 01:53 PM
#1
Thread Starter
Addicted Member
Random Numbers Help
I have a problem ..
I want to display numbers from 1-5 but all should be randomly change their positions with no missing and no duplicate.
for example.
4,2,5,3,1
3,4,2,1,5
1,5,3,2,4
hope you get idea ...
what would be most efficient way to acheive this ?
Thank You.
-
May 7th, 2007, 05:20 PM
#2
Addicted Member
Re: Random Numbers Help
Have a look at shuffle():
http://www.php.net/shuffle
F
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|