-
Notifications
You must be signed in to change notification settings - Fork 2
/
vanillaUrn-help.pd
29 lines (29 loc) · 993 Bytes
/
vanillaUrn-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#N canvas 282 598 1000 305 10;
#X obj 22 20 cnv 15 440 50 empty empty empty 20 12 0 14 -191765 -66577
0;
#X text 29 25 [vanillaUrn]: random number generator vanilla abstraction
that doesn't repeat a number before all numbers in its range have been
output;
#X obj 36 156 vanillaUrn 10;
#X obj 36 178 print;
#X msg 36 78 bang;
#X floatatom 124 135 5 0 0 0 - - -, f 5;
#X text 521 33 Argument: random number range;
#X text 528 66 Inlets:;
#X text 574 116 2nd: float to override argument;
#X text 571 205 Written by Alexandros Drymonitis;
#X msg 56 101 seed 123;
#X text 574 87 1st: bang to generate random number \, "seed \$1" message
to set the seed;
#X obj 124 180 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 146 181 sent all numbers;
#X text 527 137 Outlets:;
#X text 574 154 1st: random numbers;
#X text 575 171 2nd: bang when all numbers in range have been output
;
#X connect 2 0 3 0;
#X connect 2 1 12 0;
#X connect 4 0 2 0;
#X connect 5 0 2 1;
#X connect 10 0 2 0;