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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 4
i2 : random 10^50

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

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

o3 : Tally

See also