RandInt(max=100, freq=1.00, mul=1, add=0)
Periodic pseudo-random integer generator.
RandInt generates a pseudo-random integer number between 0 and `max` values at a frequency specified by `freq` parameter. RandInt will hold generated value until the next generation.
Parent class : PyoObject
Parameters:
max : float or PyoObject, optional Maximum value for the random generation. Defaults to 100. freq : float or PyoObject, optional Polling frequency. Defaults to 1.
Methods:
setMax(x) : Replace the `max` attribute. setFreq(x) : Replace the `freq` attribute.
Attributes:
max : float or PyoObject. Maximum value. freq : float or PyoObject. Polling frequency.
Examples:
>>> s = Server().boot() >>> s.start() >>> rnd = RandInt(10, 5, 100, 500) >>> a = Sine(rnd, mul=.5).out()
Methods details:
RandInt.setMax(x): Replace the `max` attribute. Parameters: x : float or PyoObject new `max` attribute. RandInt.setFreq(x): Replace the `freq` attribute. Parameters: x : float or PyoObject new `freq` attribute.