next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: random(ZZ)

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 24
i2 : random 10^50

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

o3 = Tally{0 => 12}
           1 => 18
           2 => 19
           3 => 12
           4 => 11
           5 => 14
           6 => 14

o3 : Tally

See also