# RAND Function

> Return a random number from 0 up to but not including 1 with the RAND formula function of TX Sheet Control: no arguments and a new number on every call.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > RAND Function
- **176 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rand/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rand/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rand/llms-full.txt

---

Return a random number greater than or equal to 0 and less than 1. RAND takes no arguments, and every call returns a different number, so `RAND()=RAND()` returns FALSE. For a random integer in a range, use [RANDBETWEEN](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/randbetween/llms-full.txt).

### Syntax

```text
RAND()
```

Category: Math. Minimum arguments: 0. Maximum arguments: 0.

Available for supported offline calculation.

### Examples

```text
=RAND()
```

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [RADIANS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/radians/llms-full.txt)
- **Next:** [RANDARRAY Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/randarray/llms-full.txt)
