RND

The RND function calculates a random number in the range 0. 1.

RND(mode)

If the last random number is to be repeated, the mode must be set to 0.