up previous next
random(X: INT, Y: INT): INT
The function returns a random integer between X and Y, inclusive. The range
|X-Y| should be less than 2^33
to assure a uniform distribution.
NOTE: every time you restart CoCoA the sequence of random numbers will
be the same (as happens in many programming languages). If you want better