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

random(ZZ,ZZ) -- random integer in a range

Synopsis

Description

i1 : for i to 10 list random(100,200)

o1 = {113, 129, 188, 118, 150, 165, 173, 176, 137, 157, 195}

o1 : List
i2 : tally apply(100, i -> random(10,15))

o2 = Tally{10 => 21}
           11 => 21
           12 => 15
           13 => 10
           14 => 15
           15 => 18

o2 : Tally

See also