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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 19
i2 : random 10^50

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

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

o3 : Tally

See also