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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 43
i2 : random 10^50

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

o3 = Tally{0 => 14}
           1 => 13
           2 => 12
           3 => 15
           4 => 13
           5 => 21
           6 => 12

o3 : Tally

See also