Random selection of a specific set of numbers
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???
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.
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:
The easiest way would be something like this, I think (no delay from coll lookup):
Another easiest way could be this way:
Haha...I love this list!
me too Steven
here's a version with no coll or zl:
i love lookup
hehe, fun
but Patrick's one definitely takes the prize for simplicity...
Cheers guys! thanks a lot!
this was the most comprehensive forum answer i have ever witnessed !
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 :
