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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 25
i2 : random 10^50

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

o3 = Tally{0 => 11}
           1 => 8
           2 => 20
           3 => 14
           4 => 13
           5 => 18
           6 => 16

o3 : Tally

See also