With the code you posted, you only need 2 hits in the same second to get
repeat numbers.  That's not all that busy.

We're not talking about truly random numbers, just small simple measures to
take over the built in functions to avoid immediate repeats.

Sam

-----------------------------------------------
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
-----------------------------------------------

> -----Original Message-----
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 26, 2004 12:29 PM
> To: CF-Talk
> Subject: Re: random number cfc
>
> > Because passing a seed that is only accurate to the second
> will cause
> > duplicate numbers in a high volume site.
> >
>
> Hell that'd have to one seriously busy website!  That's like
> 99999999 hits per second (or millisecond if you don't seed
> Randomize()) website!
>
> Well no thats not strictly true. It is an exaggeration.
>
> It should be noted that no matter how good the seed a
> computer generated random number is not random and should not
> be trusted at any time to give a truly random number or for
> the "random" number not to be a repeat!
>
> It sounds like you are wanting to get a unique number out of
> a random number generator, which you are never going to manage.
>
> Stephen
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to