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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 15
i2 : random 10^50

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

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

o3 : Tally

See also