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
ve to write the
hashing algorithms - since it already done in the DBMS.
>-Original Message-
>From: Sigurd Magnusson [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 23, 2001 9:59 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Random Code
>
>
>Whats the best way to make a c
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
he
General Accouting Office released on April 7, 2000.
> -Original Message-
> From: Sigurd Magnusson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 3:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Random Code
>
>
> Whats the best way to make a comple
Whats the best way to make a completely random, unique code in the format "ABCD-1234"
where each of the 8 characters can be alphanumerc; 0-9,A-Z... I thought about
generating a 36^4 number, converting to to base '36', and repeating the process.
What's a good way to ensure the code is not repeat
15 matches
Mail list logo