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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 55
i2 : random 10^50

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

o3 = Tally{0 => 25}
           1 => 17
           2 => 10
           3 => 14
           4 => 14
           5 => 9
           6 => 11

o3 : Tally

See also