|
Posted by Geoff Berrow on 08/02/05 18:26
I noticed that Message-ID:
<1122990037.813418.63680@g14g2000cwa.googlegroups.com> from
mydejamail@yahoo.co.uk contained the following:
>random numbers, some of which sound pretty complicated.
>
>Does PHP's simple command, generate something truly random?
>
>If I generate a range of 16 digit numbers, what chances are there for a
>repetition over the whole 10^16 range?
There is always a chance of repetition if you pick a random number.
Either assign the numbers incrementally, or check no duplicate exists.
Also consider using a combination or letters and numbers.
--
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/
[Back to original message]
|