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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 13
i2 : random 10^50

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

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

o3 : Tally

See also