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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 19
i2 : random 10^50

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

o3 = Tally{0 => 17}
           1 => 15
           2 => 14
           3 => 18
           4 => 12
           5 => 15
           6 => 9

o3 : Tally

See also