nuary 26, 2001 3:03 PM
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Random Code
>
>
> I hope you aren't serious... You ain't gonna get 36^8
> possible code values in no
>
> website database, no how... even as a bit map string, over
> 300GB is requir
te:
> Nah the values are being stored in a transaction log type thing ...
>
> Siggy
>
> - Original Message -
> From: "Asendorf, John" <[EMAIL PROTECTED]>
> To: "phobo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday,
sage-
> > From: phobo [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 23, 2001 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Random Code
> >
> >
> > Oops, 36^8 :)
> >
> > This value would only have to generated perhaps a f
>-Original Message-
>From: phobo [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 23, 2001 9:48 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] Random Code
>
>
>Oops, 36^8 :)
>
>This value would only have to generated perhaps a few times an hour, but
>
Nah the values are being stored in a transaction log type thing ...
Siggy
- Original Message -
From: "Asendorf, John" <[EMAIL PROTECTED]>
To: "phobo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 10:00 AM
Subject: RE: [
ailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Random Code
>
>
> Oops, 36^8 :)
>
> This value would only have to generated perhaps a few times
> an hour, but
> should't take more than a second to
.A.T. " <[EMAIL PROTECTED]>
To: "Sigurd Magnusson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 8:55 AM
Subject: RE: [PHP-WIN] Random Code
> Indeed a very interesting question you put forward (and probably OOT too
:-)
>
> In p
TED]>
Sent: Wednesday, January 24, 2001 7:26 AM
Subject: Re: [PHP-WIN] Random Code
> Do you mean W3E4-22ER would be valid? If so there would be 36^8
> (2,821,109,907,456) possible values.
>
> A truly random generator algorithm cannot guarantee uniqueness. I'm
> guess
10 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] Random Code
>
>
>If one need to create multiple numbers per second (that is
>cal;culation time
>is critical), then I would suggest, in accordance to my
>previous letter,
>that one should pick
23, 2001 7:26 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] Random Code
>
>
>Do you mean W3E4-22ER would be valid? If so there would be 36^8
>(2,821,109,907,456) possible values.
>
>A truly random generator algorithm cannot guarantee uniqueness. I'm
>guessin
Indeed a very interesting question you put forward (and probably OOT too :-)
In programming there does not exist "The Best Way". "Best" always depends on
what you consider to be important and less important - that's why
programmers most often writes same piece of code in different ways, and
that'
ED]]
> Sent: Tuesday, January 23, 2001 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Random Code
>
>
> Do you mean W3E4-22ER would be valid? If so there would be 36^8
> (2,821,109,907,456) possible values.
>
> A truly random generator algorithm cannot guar
Do you mean W3E4-22ER would be valid? If so there would be 36^8
(2,821,109,907,456) possible values.
A truly random generator algorithm cannot guarantee uniqueness. I'm
guessing what you want is to generate each possible value once in a
pseudo-random order. Would just apparent randomness suf
My guess is that you would need to create the random number and then check
that number against a database of saved "random" numbers, to insure
uniqueness. If someone would like to critique it, please do
I wrote this just for you because I was curious...
-
John Asendorf -
14 matches
Mail list logo