RE: [PHP-WIN] Random Code

2001-01-26 Thread Asendorf, John
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

Re: [PHP-WIN] Random Code

2001-01-26 Thread Larry Forrister
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,

Re: [PHP-WIN] Random Code

2001-01-26 Thread Larry Forrister
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

RE: [PHP-WIN] Random Code

2001-01-26 Thread Svensson, B.A.T.
>-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 >

Re: [PHP-WIN] Random Code

2001-01-23 Thread phobo
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: [

RE: [PHP-WIN] Random Code

2001-01-23 Thread Asendorf, John
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

Re: [PHP-WIN] Random Code

2001-01-23 Thread Sigurd Magnusson
.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

Re: [PHP-WIN] Random Code

2001-01-23 Thread phobo
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

RE: [PHP-WIN] Random Code

2001-01-23 Thread Svensson, B.A.T.
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

RE: [PHP-WIN] Random Code

2001-01-23 Thread Svensson, B.A.T.
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

RE: [PHP-WIN] Random Code

2001-01-23 Thread Svensson, B.A.T.
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'

RE: [PHP-WIN] Random Code

2001-01-23 Thread Asendorf, John
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

Re: [PHP-WIN] Random Code

2001-01-23 Thread Larry Forrister
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

RE: [PHP-WIN] Random Code

2001-01-23 Thread Asendorf, John
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 -