# Rand()

Generates a pseudo-random number in the range 0 - 1.

```
Rand( algorithm=string );
```

**Returns:** number

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| algorithm | string | No | The algorithm to use to generate the random number. |  |

# Examples

```cfml
writeDump(rand() GTE 0 and rand() LTE 1);
writeDump(rand("SHA1PRNG") GTE 0 and rand() LTE 1);
```







# Categories

[Numbers](../../categories/number.md)

# See Also

[Randomize()](randomize.md)