<cfscript>
for (x = 0; x LTE 99; x = x + 1) {
Randomize(Now());
Myrandnumber = RandRange(a, b);
}
</cfscript>
If this is the case..... you should change it to
<cfscript>
Randomize(Now());
for (x = 0; x LTE 99; x = x + 1) {
Myrandnumber = RandRange(a, b);
}
</cfscript>
Really Randomize should only be called once as the random sequence given a
specific seed is always predictable.... If you have the Randomize inside the
loop it will run so fast as to reset the sequence back to the original
number because the seed that Randomize would create in that instance would
be so very very close to the previous seed.....
Paul
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

