User Tools

Site Tools


function:RANDOM

Table of Contents

**This is an old revision of the document!**

The RANDOM() functions return a random real number.

  • RANDOM() returns a random real number from 0 to, but not including, 1.
  • RANDOM(N) returns a random real number from 0 to, but not including, N.
  • RANDOM(A,B) returns (v9.0+) a random real number from A to, but not including, B.

In the two parameter version, A must not equal B, and if B is less than A, they are implicitly swapped.

See Also

Functions

function/RANDOM.1562225258.txt.gz · Last modified: 2019/07/04 03:27 by peternlewis