nday, August 20, 2001 9:13 PM
>To: PHP General List
>Subject: [PHP] Picking random numbers
>
>
>OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be
>different. Not so easy.
>
>And I don't want to use shuffle because of the comments on php.net
Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 10:13 AM
To: PHP General List
Subject: [PHP] Picking random numbers
OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be
different. Not so easy.
And I don't want to use sh
> OK I want to pick 5 random numbers from 1 to 200. Easy.
> They must all be different. Not so easy.
This should work well enough to give you the general idea ... sorry if it
doesn't, I grabbed some old code and modified it so I didn't embarrass
myself too much by posting spaghetti code. :
OK I want to pick 5 random numbers from 1 to 200. Easy. They must all be
different. Not so easy.
And I don't want to use shuffle because of the comments on php.net about it.
- seb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
4 matches
Mail list logo