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 = 40244942452859845563279762526062014324474967847502
i3 : tally apply(100, i -> random 7)

o3 = Tally{0 => 10}
           1 => 18
           2 => 19
           3 => 15
           4 => 19
           5 => 13
           6 => 6

o3 : Tally

See also