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

random(ZZ) -- random integer

Synopsis

Description

i1 : random 57

o1 = 48
i2 : random 10^50

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

o3 = Tally{0 => 19}
           1 => 17
           2 => 14
           3 => 13
           4 => 16
           5 => 12
           6 => 9

o3 : Tally

See also