[Prob] Object w/o Pairs? Weighted Probability [random]?

ComfortableInClouds's icon

Hi - I am looking for an object similar to [prob], where the chances of a random number being selected can be weighted, but I don't need "pairs". I understand I could just send large lists to [prob] to account for all numbers, but I figured that this is probably a pretty common task and I'd assume there's an object out there like [prob] but without pairs.

Luke Hall's icon

Perhaps use [random] linked to a [table] so you can draw your own weightings. Or have a look at Peter Castine's Litter Power for all sorts of useful flavours of randomness.

lh

Christopher Dobrian's icon

check out the 'bang' message to the table object

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

He is a patch I wrote a while back that you can save as a subpatch. Two lists for example [1 4 2 86] and [10 20 55 15] will output the numbers in the list according to the distribution in the right (think of them as percentages).
But in general table is what you want or you can use split with random.