RandRange()
Generates a random integer between two specified numbers.
Requests for random integers that are greater than 100,000,000 result in non-random numbers, to prevent overflow during internal computations.
RandRange( number1=number, number2=number, algorithm=string );
Returns: Number
Examples
writeDump(randRange(25,125,'CFMX_COMPAT'));
writeDump(randRange(100,500,'SHA1PRNG'));
See also
- Cryptography
- Math
- Numbers
- Randomize()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)