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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 31
i2 : random 10^50

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

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

o3 : Tally

See also