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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 2
i2 : random 10^50

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

o3 = Tally{0 => 15}
           1 => 9
           2 => 17
           3 => 9
           4 => 16
           5 => 13
           6 => 21

o3 : Tally

See also