A scalar UGen that generates a single random decimal value between lo and
hi with a selectable skew towards either end.
The minMax <= 0 behaves rather odd: If minMax is less than 1, the
distribution is skewed towards lo (with lo = 0 and hi = 1 , the mean is
approx. 0.33). If minMax is greater than or equal to 1, the distribution is
skewed towards hi (with lo = 0 and hi = 1 , the mean is approx 0.66).
Examples
// two clusters with opposite skew
play {
val z: GE = 0 to 1 map { n =>
Mix.fill(10)(FSinOsc.ar(LinRand(200, 800, n))) * SinOsc.ar(0.4, n * math.Pi).max(0)
}
z * 0.025
}
A scalar UGen that generates a single random decimal value between
lo
andhi
with a selectable skew towards either end.The
minMax <= 0
behaves rather odd: IfminMax
is less than 1, the distribution is skewed towardslo
(withlo = 0
andhi = 1
, the mean is approx. 0.33). IfminMax
is greater than or equal to 1, the distribution is skewed towardshi
(withlo = 0
andhi = 1
, the mean is approx 0.66).Examples
RandSeed
NRand
ExpRand
Rand