I am currently selecting the data in a coll object at random and am looking to find a way to integrate a variable probability weighting for one specific number to be selected from it. I am aware that the prob object can be used to set the probability of numbers being selected from within a list, but the probability is relative to the other probabilities in that list. I wish to keep the selection of all the numbers from the coll random with the exception of one, and control the probability of this single number externally (from outside the list/coll).

e.g. numbers 1 – 9 all being selected at random (from within a coll) and 10 having a variable probability weighting ranging from 10-100%

Any help with this would be much appreciated.

]]>– Pasted Max Patch, click to expand. –

]]>
It looks really helpful and i’m pretty sure it’ll do what i need. I’m just a little unsure as to how exactly it’s working.

Would you mind explaining the argument to me so that i am able to apply it to my project?

Thanks again

]]>