On 19-Jun-2003 Awlad Hussain wrote:
> How do i generate a unique random number?
>
http://www.php.net/manual/en/function.uniqid.php
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor
> How do i generate a unique random number?
You can use rand(), but there's no guarantee it'll be unique unless you
remember every number you've ever generated
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check the manual on the rand(); function ..
If you want to make sure this number is unique .. create an array storing
all the numbers you've used once and do some nice tricks with a loop and
stuff untill you get a nice unique random number ... like this:
-Oorspronkelijk bericht-
Van: Aw
3 matches
Mail list logo