> 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
> hits
> 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
hits per second (or millisecond if you don't seed Randomize()) website!
Well no thats not strictly true. It
og: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---
> -Original Message-
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 26, 2004 11:36 AM
> To: CF-Talk
> Subject: Re: random numbe
January 26, 2004 11:37 AM
To: CF-Talk
Subject: RE: random number cfc
sure...this is christians code from his blog...so, I wonder what he thinks?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:35 AM
To: CF-Talk
Subject: RE: random num
Heck! Thats complicated for :
Randomize(DateFormat(now(),"ddmm")&TimeFormat(now(),"hhmmss"));
NewNumber = RandRange(1,);
Any particular reason???
Stephen
Tony Weeg wrote:
>
>
>
>
> returnvariable="theNumber">
> #theNumber#
>
>
>
> Is what I have, and here are the results, am
sure...this is christians code from his blog...so, I wonder what he thinks?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:35 AM
To: CF-Talk
Subject: RE: random number cfc
have a look at http://java.sun.com/j2se/1.4.2/docs/api
ilto:[EMAIL PROTECTED]
> Sent: Monday, January 26, 2004 11:20 AM
> To: CF-Talk
> Subject: random number cfc
>
>
>
> component="randomGenerator" method="next"
> returnvariable="theNumber">
> #theNumber#
>
>
>
>
have a look at http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html
maybe reseed on each iteration?
Doug
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:28 AM
To: CF-Talk
Subject: RE: random number cfc
so cf is looping 5 times
so cf is looping 5 times per second...on average?
and therefore on the same getTickCount() tick?
tw
-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:27 AM
To: CF-Talk
Subject: RE: random number cfc
Nope, but the seed for Random() in
andom number cfc
returnvariable="theNumber">
#theNumber#
Is what I have, and here are the results, am I doing something
wrong?
3582162
3582162
3582162
3582162
3582162
3582162
87279085
87279085
87279085
87279085
87279085
90357076
90357076
90357076
90357076
90357076
90357076
returnvariable="theNumber">
#theNumber#
Is what I have, and here are the results, am I doing something
wrong?
3582162
3582162
3582162
3582162
3582162
3582162
87279085
87279085
87279085
87279085
87279085
90357076
90357076
90357076
90357076
90357076
90357076
81123102
81123102
81123102
11 matches
Mail list logo