[nycphp-talk] generate random unique 8-digit number
Tim Gales
tgales at tgaconnect.com
Tue Mar 10 08:48:15 EDT 2009
chad qian wrote:
> Hi,
> I need to generate random 8-digit numbers continuously.And no
> duplication among all those numbers.In other word,every single 8-digit
> number must be unique.How to do php programming?
Change your specification to 13 characters and use the function uniqid
Uniqid is driven by the system clock -- so it's granularity is a
microsecond.
More information about the talk
mailing list