# Rand

Returns a random decimal number in the range 0 to 1.

See also Randomize and RandRange.

### Syntax

    Rand()

### Usage

To ensure even greater randomness, call Randomize before calling Rand.

### Example

    <!--- This example shows the use of Rand() --->
    <HTML>
    <HEAD>
    <TITLE>
    Rand Example
    </TITLE>
    </HEAD>

    <BODY BGCOLOR=silver>
    <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>

    </BODY>
    </HTML>