randRange limit?

Example:

<cfset randA=#randRange(98632500001273, 23768951248743981237)# />
<cfset randB=#randRange(2165325874090972535392394,98932721530935635835067365734662)# />
<cfset randC=#randRange(randA, randB)# />

Result for all three values is always 2147483647

So, I’m guessing there is a limit as to the size of number that randRange can generate?

check if this can help you: A Better RandRange()

Thank you! For now I settled on accepting a range between 9xx,xxx and 9xx,xxx,xxx,xxx and then hashing that rand result to SHA2, 256. But I will come back to this and implement when I get a break. Thanks!

please vote for the bug [LDEV-25] - Lucee

OK, I feel pretty dumb - but I can’t find a way to vote on that link.

are you logged in? you can vote at the top right under reporter

Missing one of those icons. Let me find log in

Done