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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 22
i2 : random 10^50

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

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

o3 : Tally

See also