Whatever message this page gives is out now! Go check it out!
Rand([algorithm])Parameter | Description |
algorithm | (Optional) The algorithm to use to generate the random number. ColdFusion installs a cryptography library with the following algorithms:
|
<cfscript>
randAlgorithmArray=["SHA1PRNG","IBMSecureRandom"];
for (index=1;index<=arrayLen(randAlgorithmArray);index++){
WriteOutput("The random value using #randAlgorithmArray[index]# is: " & rand(randAlgorithmArray[index]) & " | ");
}
</cfscript>