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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 7
i2 : random 10^50

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

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

o3 : Tally

See also