RND()

RND(V)

RETURNS A RANDOM VALUE BETWEEN 0 AND V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function RND(V) returns a random number from the range 0 to V.

V can be a real or integer number and must be positive.

SYNTAX: Result=RND(V)

  • V = integer value.

USE

  • The function RND() is used to give a random number.

ERROR

  • If V is less than or equal to 0.
  • If V is not a correct expression.

EXAMPLE

print rnd(3)

print "Result is between 0 and 3"

SEE ALSO

LOG()