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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 14
i2 : random 10^50

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

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

o3 : Tally

See also