next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: random(ZZ)

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 41
i2 : random 10^50

o2 = 4122581879759846572994125407997102491916747724078
i3 : tally apply(100, i -> random 7)

o3 = Tally{0 => 18}
           1 => 15
           2 => 15
           3 => 20
           4 => 6
           5 => 14
           6 => 12

o3 : Tally

See also