On 02/06/16 08:09, IOhannes m zmölnig wrote:
On 05/31/2016 05:50 PM, IOhannes m zmoelnig wrote:
i really like the powers of the new [osc*] objects for these kind of things.
here's an updated example, that properly generates numbers in to 0..1 range.
it has full 24bit of (pseudo) randomness.
But the distribution is not uniform (lower third is twice as likely as
the upper two thirds of the range). See attached for a test.
Claude
--
https://mathr.co.uk
#N canvas 1 51 308 317 10;
#X obj 103 91 randF;
#X obj 103 113 * 1000;
#X obj 103 135 int;
#X obj 103 177 tabread \$0-hist;
#X obj 103 199 + 1;
#X obj 103 221 tabwrite \$0-hist;
#X obj 103 157 t f f;
#X obj 41 255 table \$0-hist 1000;
#X obj 76 23 t b b;
#X obj 103 68 until;
#X msg 10 48 normalize 1;
#X obj 10 70 s \$0-hist;
#X obj 78 5 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 106 46 1e+06;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 6 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 3 0;
#X connect 6 1 5 1;
#X connect 8 0 10 0;
#X connect 8 1 13 0;
#X connect 9 0 0 0;
#X connect 10 0 11 0;
#X connect 12 0 8 0;
#X connect 13 0 9 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list