@Random (Formula Language)

Generates a random number between 0 and 1, inclusive.

Syntax

@Random

Usage

To generate a random number between any two numbers x and y, use the formula


(
 y 
- 
x 
)*@Random + 
x

Examples

This formula generates a random number between 7 and 22, inclusive. For example, it might return 13.
15 * @Random + 7