Re: random number
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: random number

From: Geoff Berrow <blthecat@ckdog.co.uk>
Date: Thu Oct 13 2005 - 02:08:58 CEST

I noticed that Message-ID: <4Ee3f.11072$6c4.10809@newsfe5-win.ntli.net>
from Oli Filth contained the following:

>> How can I make an application form that generates a unique number starting
>> from 1001.?
>>
>
>Did you even bother to read the PHP manual for random functions, e.g.
>rand()?

Why bother with rand()? Just start at 1001 and increment. Each number
will be unique.

-- 
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Received on Tue Oct 18 02:40:56 2005