#N canvas 229 82 557 534 10;
#X obj 0 0 cnv 15 552 40 empty empty arbran 3 12 0 18 -204280 -1 0
;
#X obj 0 326 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 0 388 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 429 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 79 397 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 79 340 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 0 496 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#N canvas 136 492 428 75 Related_objects 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Related Objects;
#X obj 161 25 gauss;
#X obj 243 25 poisson;
#X obj 199 25 linear;
#X obj 47 25 bilex;
#X obj 129 25 expo;
#X obj 15 25 beta;
#X obj 85 25 cauchy;
#X obj 292 25 urn;
#X restore 206 498 pd Related_objects;
#N canvas 308 620 379 261 META 0;
#X text 12 136 AUTHOR Olaf Matthes;
#X text 12 174 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42. Updated by Fred Jan Kraan 2016-02.;
#X text 12 25 LICENSE GPL v2;
#X text 12 45 DESCRIPTION generate a random variable conforming to
the piecewise probability density functions specified in two arrays
;
#X text 12 95 INLET_0 bang pdfscale;
#X text 12 115 OUTLET_0 float;
#X text 12 5 KEYWORDS control random array;
#X text 12 155 MAINTAINER Fred Jan Kraan <fjkraan@xs4all.nl>;
#X restore 502 500 pd META;
#X text 107 397 float;
#X obj 41 105 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 41 280 5 0 0 0 - - -, f 5;
#X msg 110 108 pdfscale;
#X text 8 24 two array piecewise probability density random number
generator, f 75;
#N canvas 0 50 450 300 (subpatch) 0;
#X array \$0-a1 6 float 1;
#A 0 1.1 2.67143 3.24285 3.1 4.38571 8.67143;
#X coords 0 10 5 0 140 100 1 0 0;
#X restore 237 61 graph;
#N canvas 0 50 450 300 (subpatch) 0;
#X array \$0-a2 6 float 1;
#A 0 0.0229077 0.204366 0.486501 0.0632986 0.204028 0.025319;
#X coords 0 1 5 0 140 100 1 0 0;
#X restore 389 61 graph;
#N canvas 0 50 450 250 (subpatch) 0;
#X array \$0-a3 100 float 2;
#X coords 0 10 100 0 200 140 1 0 0;
#X restore 330 179 graph;
#X text 320 179 5;
#X text 314 305 -5;
#N canvas 1 81 450 300 arrayWrite 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Array writer;
#X obj 217 152 f 0;
#X obj 243 153 + 1;
#X obj 136 130 t f b;
#X msg 217 129 0;
#X text 241 129 restart;
#X obj 136 82 inlet;
#X obj 217 82 inlet;
#X obj 136 174 tabwrite \$0-a3;
#X connect 2 0 3 0;
#X connect 2 0 9 1;
#X connect 3 0 2 1;
#X connect 4 0 9 0;
#X connect 4 1 2 0;
#X connect 5 0 2 0;
#X connect 7 0 4 0;
#X connect 8 0 5 0;
#X restore 233 283 pd arrayWrite;
#X obj 308 261 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 41 74 metro 100;
#X obj 41 53 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 495 9 _arbran;
#X obj 41 202 maxlib/arbran \$0-a1 \$0-a2;
#X text 162 397 - new random value;
#X text 107 341 bang;
#X text 162 340 - produces new random value;
#X text 107 360 pdfscale;
#X text 162 359 - check and adjust probability values (sum has to be
1);
#X text 96 468 arg2: probability array;
#X text 96 449 arg1: value array;
#X text 275 44 comment;
#X text 221 61 10;
#X text 227 147 0;
#X text 379 147 0;
#X text 379 60 1;
#X connect 10 0 24 0;
#X connect 12 0 24 0;
#X connect 20 0 19 1;
#X connect 21 0 10 0;
#X connect 22 0 21 0;
#X connect 24 0 11 0;
#X connect 24 0 19 0;
