PureData CEAMMC web documentation

PureData CEAMMC library web documentation

View on GitHub

Distribution download

index :: random

random.discrete

random weighted integers on interval [0, n)

available since version: 0.4


information

Produces random integers on the interval [0, N), where the probability of each individual integer i defined as Wⁱ/S, that is the weight of the i-th integer divided by the sum of all N weights. Use @seed property to get reproducible sequences. If @seed property was not explicitly set or specified, uses generator initialized with current time.

example

arguments:

properties:

inlets:

outlets:

keywords:

linear random discrete

See also: [random.linear] [random.pw_const]

Authors: Serge Poltavsky

License: GPL3 or later