Reply to Re: Looking for a PHP PIN Number generator

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация