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)
}
- See also
- Companion
- class