2 summary:: Triggered integer random number generator.
3 related:: Classes/ExpRand, Classes/IRand, Classes/LinRand, Classes/NRand, Classes/Rand, Classes/TExpRand, Classes/TRand
4 categories:: UGens>Random, UGens>Triggers
9 Generates a random integer value in uniform distribution from
10 code::lo:: to code::hi:: each time the
11 trigger signal changes from nonpositive to positive values.
19 Lower limit of the output range.
22 Upper limit of the output range.
26 The trigger. Trigger can be any signal. A trigger happens when
27 the signal changes from non-positive to positive.
35 SynthDef("help-TIRand", {
38 outBus = TIRand.kr(0, 1, trig); //play on random channel between 0 and 1
39 Out.ar(outBus, PinkNoise.ar(0.2))
46 var trig = Dust.kr(10);
48 TIRand.kr(4, 12, trig) * 100
55 var trig = Dust.ar(MouseX.kr(1, 8000, 1));
57 TIRand.ar(4, 12, trig) * 100