Results 1 to 2 of 2

Thread: Random Numbers Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    154

    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.

  2. #2
    Addicted Member
    Join Date
    Dec 2004
    Posts
    143

    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
  •  



Click Here to Expand Forum to Full Width