# RAND

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function returns an evenly distributed random number between 0 and 1.

## Syntax

RAND()

## Arguments

This function does not accept arguments.

## Remarks

This function returns a new random number.
To generate a random real number between *x* and *y*, with *y* greater than *x*, use the following expression:
RAND()\*(y-x)+x
To generate a random integer between x and y, with y greater than x, use the following expression:
INT((y-x+1)\*RAND()+x)
This is a volatile function with version 2.5 or later. For more information, refer to [Volatile Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-volatile).

## Data Types

Does not accept data. Returns numeric data.

## Examples

`RAND()`
`RAND()*100`
`INT(RAND()*100)`

## Version Available

This function is available in product version 1.0 or later. This function is a volatile function in version 2.5 or later.

## See Also

[RANDBETWEEN](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionRANDBETWEEN) \| [INT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsFtoK/FunctionINT) \| [Math and Trigonometry Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsmathtrig)