function:RAND
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| function:RAND [2015/07/13 10:03] – created peternlewis | function:RAND [2023/09/20 07:35] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The RAND(N) | + | ====== RAND Function ====== |
| + | |||
| + | The RAND() functions return a random integer number. | ||
| + | |||
| + | * RAND(N) returns | ||
| + | * RAND(A,B) returns (v9.0+) a random integer number from A to, including, B. | ||
| + | |||
| + | In the one parameter version, N must be greater than or equal to 1. | ||
| + | |||
| + | In the two parameter version, if B is less than A, they are implicitly swapped. If A and B are the same, then that is the number that will always be returned. | ||
| + | |||
| + | Note: Unlike the other variants of RAND() and [[RANDOM|RANDOM()]], | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | ==== Functions ==== | ||
| + | |||
| + | * [[RANDOM]] | ||
| + | * [[: | ||
function/RAND.1436781784.txt.gz · Last modified: by peternlewis
