controlled randomness

    Feb 18 2013 | 12:26 pm
    Hi. 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.

    • Feb 18 2013 | 1:14 pm
      Like this?
    • Feb 18 2013 | 8:40 pm
      Thanks for the reply, and the patch! 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
    • Feb 19 2013 | 12:08 am
      The patch controls the probability of number 10 with a live.dial ranging from 0-100%, and if 10 is not chosen another number 1-9 is randomly selected.