linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / ExpRand.schelp
blob5c2e893028d51093cf6a232b2f30a6c216120acc
1 class:: ExpRand
2 summary:: Exponential single random number generator.
3 related:: Classes/IRand, Classes/LinRand, Classes/NRand, Classes/Rand, Classes/TExpRand, Classes/TIRand, Classes/TRand
4 categories:: UGens>Random
6 Description::
8 Generates a single random float value in an exponential distributions
9 from  code::lo::  to  code::hi:: . It generates
10 this when the SynthDef first starts playing, and remains fixed for
11 the duration of the synth's existence.
14 classmethods::
16 method::new
18 argument::lo
19 Lower limit of the output range.
21 argument::hi
22 Upper limit of the output range.
24 Examples::
26 code::
29 SynthDef("help-ExpRand", { arg out=0, n=0;
30         Out.ar(out,
31                 FSinOsc.ar(
32                         ExpRand(100.0, 8000.0, n),
33                         0, Line.kr(0.2, 0, 0.01, doneAction:2))
34         )
35 }).send(s);
39 Routine({
40         inf.do({ arg i;
41                 Synth.new("help-ExpRand"); 0.05.wait;
42         })
43 }).play;