next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 52
i2 : random 10^50

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

o3 = Tally{0 => 18}
           1 => 8
           2 => 14
           3 => 22
           4 => 10
           5 => 13
           6 => 15

o3 : Tally

See also