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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 20
i2 : random 10^50

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

o3 = Tally{0 => 12}
           1 => 19
           2 => 18
           3 => 7
           4 => 10
           5 => 18
           6 => 16

o3 : Tally

See also