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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 49
i2 : random 10^50

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

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

o3 : Tally

See also