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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 33
i2 : random 10^50

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

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

o3 : Tally

See also