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

o3 = Tally{0 => 14}
           1 => 18
           2 => 16
           3 => 14
           4 => 7
           5 => 14
           6 => 17

o3 : Tally

See also