A UGen that outputs integer random numbers when triggered. The values have a
uniform distribution from lo to hi (inclusive).
Note: Audio-rate inputs for lo and hi are currently broken in
SuperCollider, and will therefore be converted to control-rate inputs.
Examples
// random sine frequencies, triggered by mouse button
play {
val tr = MouseButton.kr(lag = 0)
val m = Mix.fill(10)(SinOsc.ar(TIRand.kr(40, 100, tr).midicps))
m * Linen.kr(tr, sustain = 0.025, release = 2)
}
A UGen that outputs integer random numbers when triggered. The values have a uniform distribution from
lo
tohi
(inclusive).Note: Audio-rate inputs for
lo
andhi
are currently broken in SuperCollider, and will therefore be converted to control-rate inputs.Examples
TRand
IRand