A UGen that generates a new random decimal value each time it is triggered,
using a uniform distribution from lo
to hi
.
'''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(TRand.kr(200.0, 800.0, tr)))
m * Linen.kr(tr, sustain = 0.025, release = 2)
}
- See also
- Companion
- class