max v2; #N vpatcher 404 137 1148 719; #P origin 0 -28; #P message 82 164 49 196617 seed 777; #P comment 136 98 62 196617 Click to get a random number; #P comment 207 78 83 196617 Set range via right inlet; #P comment 8 208 207 196617 Optional arguments initializes range (default 1) and seed (default 0 \, which means time value is used to initialize the seed); #P slider 269 107 15 200 1 10; #P number 200 142 56 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 141 141 15 0; #P number 141 184 82 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 141 163 69 196617 random 2000; #B color 5; #P comment 8 251 207 196617 When it receives a bang \, random will generate a number between 0 and one less than its range; #P comment 30 21 134 196617 Now we generate a random number; #P comment 27 96 100 196617 set random number generator seed--a value of 0 uses an unpredictable time value to set the seed; #P newex 498 345 55 196617 metro 100; #P button 498 309 15 0; #P message 498 379 100 196617 0 \, 1. 10 1. 50 0. 10; #P flonum 407 383 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 407 460 101 196617 *~; #P newex 498 426 31 196617 line~; #P message 317 419 32 196617 start; #P message 284 419 27 196617 stop; #P newex 407 429 60 196617 cycle~ 440; #P newex 407 499 30 196617 dac~; #P comment 339 384 58 196617 Frequency; #P comment 515 402 53 196617 Amplitude; #P comment 351 562 100 196617 Numbers and Music; #P fasten 24 0 16 0 87 187 135 187 135 159 146 159; #P connect 18 0 16 0; #P connect 16 0 17 0; #P fasten 20 0 19 0 274 321 263 321 263 133 205 133; #P connect 19 0 16 1; #P connect 9 0 4 0; #P connect 4 0 8 0; #P connect 8 0 3 0; #P fasten 6 0 3 0 322 498 412 498; #P fasten 5 0 3 0 289 498 324 498 412 498; #P connect 8 0 3 1; #P connect 11 0 12 0; #P connect 12 0 10 0; #P connect 10 0 7 0; #P connect 7 0 8 1; #P pop;