Method

# Rnd

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Returns a randomly generated number in the range 0 \<= <span class="title-ref">Rnd</span> \< 1.

## Usage

``` xojo
result = Rnd
```

| Part   | Type                             | Description        |
|--------|----------------------------------|--------------------|
| result | `Double</api/data_types/double>` | The random number. |

## Notes

The equivalent functionality is provided by the `Random</api/math/random>` class as a special case. The `Random</api/math/random>` class also provides additional options, such as a random number selected from a Normal distribution.

A custom random number generator is used.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Random</api/math/random>` class.

</div>
