random

random([N [,M]])

Interfaces to the ANSI C function rand. Its pseudo-random properties is implementation-dependent; determined by the compiler, operating system and platform.When called without arguments, returns a pseudo-random real number in the range [0,1).When called with a number n, returns a pseudo-random integer in the range [1,n].When called with two arguments, n and m, returns a pseudo-random integer in the range [n,m].