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)
36 35 32 29 26 24 21 20 17 16 11 10
o4 = a + a + a + a + a + a + a + a + a + a + a + a +
------------------------------------------------------------------------
9 7 5 2
a + a + a + a + 1
o4 : GF 1099511627776
See also
setRandomSeed -- set starting point for random number generator