If the Height option specifies a number h and T is ZZ then the integers returned are in the range [0, h); for QQ the numerator and denominator are in the range [1, h].
i4 : random GF(2,40)
37 35 33 31 29 27 24 22 17 16 15 12
o4 = a + a + a + a + a + a + a + a + a + a + a + a +
------------------------------------------------------------------------
5 4 2
a + a + a + a
o4 : GF 1099511627776
See also
setRandomSeed -- set starting point for random number generator