Update of /cvsroot/pure-data/abstractions/footils/list-abs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12527
Added Files: list-random-help.pd list-random.pd Log Message: added list-random, which generates lists of random integers. Should have added that a long time ago ...
--- NEW FILE: list-random.pd --- #N canvas 253 175 513 548 10; #X obj 73 55 inlet; #X msg 73 111 seed $1; #X obj 161 290 random $1; #X obj 161 352 list prepend; #X obj 254 353 t a; #X obj 161 256 until; #X obj 138 109 t b b b; #X obj 138 373 list; #X obj 219 53 inlet; #X obj 292 54 inlet; #X obj 292 133 f $2; #X obj 303 105 loadbang; #X obj 73 86 route seed; #X obj 138 406 outlet; #X text 73 29 seed/bang; #X text 220 31 range; #X text 293 30 length; #X obj 161 235 f 1; #X obj 292 153 max 1; #X connect 0 0 12 0; #X connect 1 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 7 1; #X connect 4 0 3 1; #X connect 5 0 2 0; #X connect 6 0 7 0; #X connect 6 1 17 0; #X connect 6 2 3 1; #X connect 7 0 13 0; #X connect 8 0 2 1; #X connect 9 0 10 0; #X connect 10 0 18 0; #X connect 11 0 10 0; #X connect 12 0 1 0; #X connect 12 1 6 0; #X connect 17 0 5 0; #X connect 18 0 17 1;
--- NEW FILE: list-random-help.pd --- #N canvas 283 264 634 420 10; #N canvas 435 477 293 176 show 0; #X obj 77 36 inlet; #X obj 77 109 outlet; #X obj 77 60 list prepend set; #X obj 77 85 list trim; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 1 0; #X restore 105 331 pd show; #X msg 105 351; #X msg 105 194 bang; #X msg 150 194 seed 123; #X floatatom 148 243 5 0 0 2 range - -; #X floatatom 191 243 5 0 0 2 length - -; #X text 63 26 [list-random]; #X obj 105 265 list-random 5; #X text 101 119 A seed-message is used to seed the random number generator. ; #X obj 172 140 random; #X text 103 141 Also see:; #X text 103 55 generates a list of pseudorandom integers from 0 to N-1 , where N is the first creation argument. The second creation argument specifies the length of the list (minimum and default length is 1).; #N canvas 435 477 293 176 show 0; #X obj 77 36 inlet; #X obj 77 109 outlet; #X obj 77 60 list prepend set; #X obj 77 85 list trim; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 1 0; #X restore 289 331 pd show; #X msg 289 351; #X msg 289 194 bang; #X msg 334 194 seed 123; #X floatatom 346 243 5 0 0 2 range - -; #X floatatom 403 243 5 0 0 2 length - -; #X obj 289 265 list-random 10 20; #X msg 114 307 bang; #X msg 297 308 bang; #X connect 0 0 1 0; #X connect 2 0 7 0; #X connect 3 0 7 0; #X connect 4 0 7 1; #X connect 5 0 7 2; #X connect 7 0 0 0; #X connect 12 0 13 0; #X connect 14 0 18 0; #X connect 15 0 18 0; #X connect 16 0 18 1; #X connect 17 0 18 2; #X connect 18 0 12 0; #X connect 19 0 0 0; #X connect 20 0 12 0;