-
LinRand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random LinRand : UGen : AbstractFunction : Object Skewed random number generator. Source: ...
-
... le random numbers '>Between zero and <number> 5.rand // evenly distributed. 1.0.linrand // probability decreases linearly from 0 to <number>. ⧉ ✔ %20and%20 '>Between -<number> and <number> 5.0.rand2 // evenly distributed. 10.bilinrand // pr ...
-
... .nextN(800).sort.plot("sorted distribution, again"); ) // comparison: emulate a linrand ( var a, b, x, y; a = Pprob([1, 0]); x = Pfunc({ 1.0.linrand }); b = a.asStream; y = x.asStream; postf("Pprob mean: % linrand mean: % \n", b.nextN(800). ...
-
... .dup(n); sprs= objs.collect{|x| objs.collect{|y| if(x!=y, { RedSpring(x, y, 0.2.linrand, 1.0.linrand, 200.rrand(300)); }); }.select{|x| x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.stro ...
-
... h to draw lsys= RedLSystem("F", ($F: "F[+F--F]+F".scramble)); lplot.noise= 0.75.linrand; lplot.theta= 20.0.rand2; lplot.lsystem= lsys; lsys.reset; cnt= -1; }); }); lsys.next; cnt= cnt+1; //--render Pen.strokeColor= Color.white; Pen.translat ...
-
... pyNN; // The following should have a lower entropy than the above: KDTree({[1.0.linrand, 1.0.linrand]}.dup(1000)).entropyNN; // Even lower entropy: KDTree({[1.0.linrand.squared, 1.0.linrand.squared]}.dup(1000)).entropyNN; // For a 1D unifor ...
-
... (world, loc, vel, 0, size, size) //world,loc,vel,acc,mass,size .angularVel_(2.0.linrand); ypos= ypos+(size*2.25); obj; }); //--loop w.draw{ Pen.fillColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.update; world.contain(o); //--re ...
-
... ct Single random number generator. Source: Noise.sc See also: ExpRand , IRand , LinRand , NRand , TExpRand , TIRand , TRand Description Generates a single random float value in uniform distribution from lo to hi . It generates this when the ...
-
... ct Single integer random number generator. Source: Noise.sc See also: ExpRand , LinRand , NRand , Rand , TExpRand , TIRand , TRand Description Generates a single random integer value in uniform distribution from lo to hi . It generates this ...
-
... Exponential single random number generator. Source: Noise.sc See also: IRand , LinRand , NRand , Rand , TExpRand , TIRand , TRand Description Generates a single random float value in an exponential distributions from lo to hi . It generate ...