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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 43
i2 : random 10^50

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

o3 = Tally{0 => 9 }
           1 => 16
           2 => 11
           3 => 15
           4 => 14
           5 => 11
           6 => 24

o3 : Tally

See also