randrange() function

2000-08-11 Thread Bud
Hi. This one is weird, unless there's something I've missed somewhere. I have this code: cfset pass = randrange(1736483927,9039930393) It returned this number: 1430463369 Shouldn't the number returned always be in the range specified? Is there a limit as to the size of the number this works

Re: randrange() function

2000-08-11 Thread Seth Petry-Johnson
I have this code: cfset pass = randrange(1736483927,9039930393) It returned this number: 1430463369 Shouldn't the number returned always be in the range specified? Is there a limit as to the size of the number this works on or something? Integers in CF are limited to 32 bit numbers

Re: randrange() function

2000-08-11 Thread Bud
On 8/11/00, Seth Petry-Johnson penned: I wrote a little test. I ran a loop 1000 times, each iteration generating a random number using the randRange() parameters you mentioned above. On 5 separate page loads, ALL 1000 numbers were less than 1,736,483,927. If I dropped the second parameter to a