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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 36
i2 : random 10^50

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

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

o3 : Tally

See also