Rand

Generates a random number.

A random decimal number, in the range 0 - 1.

Mathematical functions

Rand()

Randomize, RandRange

To ensure greater randomness, call the Randomize function before calling Rand.

<h3>Rand Example</h3>
<p>Rand() returns a random number in the range 0 to 1.
<p>Rand() returned: <cfoutput>#Rand()#</cfoutput>
<p><A HREF = "rand.cfm">Try again</A>

View comments on LiveDocs