Random selection of a specific set of numbers

Lasse Munk's icon

Dear Forum
I can't seem to figure out how to make a random selection of a specific set of numbers, fx. 1, 45, 67,82, 93 etc. I'm looking at a combination of the random and the coll object. Am I on the right track???

Lasse Munk's icon

So i have like a "list", and the random object is choosing one number at one point, and then choosing another at another point, whenever it recieves a bang.

Steven Miller's icon
Max Patch
Copy patch and select New From Clipboard in Max.

the easiest way would be to load your set of numbers into a coll, one per 'slot' and label the slots with a set of integers that the random would produce, i.e. 1-5, or 0-4 (for a set of 5 numbers). Then have the output of random go to coll to retrieve the numbers stored there. Like this:

Bas van der Graaff's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The easiest way would be something like this, I think (no delay from coll lookup):

pdelges's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Another easiest way could be this way:

Steven Miller's icon

Haha...I love this list!

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

me too Steven
here's a version with no coll or zl:

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

i love lookup

seejayjames's icon

hehe, fun

Max Patch
Copy patch and select New From Clipboard in Max.

but Patrick's one definitely takes the prize for simplicity...

Lasse Munk's icon

Cheers guys! thanks a lot!

Tiny Orbit's icon

this was the most comprehensive forum answer i have ever witnessed !

Source Audio's icon

If one does not want repeated generated values ...
Than all of this falls back to something like urn and coll...
Or at least something lke this :