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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 12
i2 : random 10^50

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

o3 = Tally{0 => 11}
           1 => 16
           2 => 14
           3 => 20
           4 => 17
           5 => 8
           6 => 14

o3 : Tally

See also