A UGen that generates a new random decimal value each time it is triggered,
using an exponential distribution from lo to hi . Values lo and hi must
both have the same sign and be non-zero.
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(TExpRand.kr(200.0, 800.0, tr)))
m * Linen.kr(tr, sustain = 0.025, release = 2)
}
A UGen that generates a new random decimal value each time it is triggered, using an exponential distribution from
lo
tohi
. Valueslo
andhi
must both have the same sign and be non-zero.Note: Audio-rate inputs for
lo
andhi
are currently broken in SuperCollider, and will therefore be converted to control-rate inputs.Examples
RandSeed
ExpRand
TRand