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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 50
i2 : random 10^50

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

o3 = Tally{0 => 6 }
           1 => 24
           2 => 20
           3 => 9
           4 => 12
           5 => 16
           6 => 13

o3 : Tally

See also