RandRange(number1, number2[, algorithm])

History

ColdFusion MX 7: Added the algorithm parameter.

See also

Rand, Randomize

Parameters

number1, number2

Integer numbers. If the numbers are not in the range -2,147,483,648 - 2,147,483,647, ColdFusion generates an error.

algorithm

(Optional) The algorithm to use to generated the random number. ColdFusion installs a cryptography library with the following algorithms:

CFMX_COMPAT: the algorithm used in ColdFusion (default).

SHA1PRNG: generates a number using the Sun Java SHA1PRNG algorithm. This algorithm provides greater randomness than the default algorithm

IBMSecureRandom: for IBM WebSphere (IBM JVM does not support the SHA1PRNG algorithm.)