next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 20
i2 : random 10^50

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

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

o3 : Tally

See also