Random
Nota
Working with statistics? See Random (Statistics).
Returns a random number. One can specify the seed using random_seed(Integer)
.
Syntax
random()
random(Integer)
random(Real)
random(Integer, Integer)
random(Real, Real)
Description
Returns a random number in the interval .
Given an integer , returns a random integer number in the interval (if is positive) or (if is negative).
Given a real , returns a random real number in the interval (if is positive) or (if is negative).
Given two integers numbers and , returns a random integer in the interval .
Given two real numbers and , returns a random real number in the interval .
Atenció
Given two integers numbers and , if the result will be a random decimal number between and .