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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 12
i2 : random 10^50

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

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

o3 : Tally

See also