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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 4
i2 : random 10^50

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

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

o3 : Tally

See also