Forums > MaxMSP

Decide Object with adjustable probability


Sym
February 23, 2012 | 11:49 pm

Hey, I’m looking for an object or a simple combination that acts like the decide object and outputs 1 or 0 randomly at a bang input. What I want to achieve is for example to say that the chance is 80% that a 1 is the output.

I’m sure there’s a simple solution but currently I’m stuck.

Thanks for your help!


February 24, 2012 | 12:24 am
– Pasted Max Patch, click to expand. –

February 24, 2012 | 1:51 am

start with random or expr … plus if or gate …


February 24, 2012 | 2:15 am

Maybe TMI, but here ya go: A simple probabilistic decision

Also, here’s a "gamble" abstraction, to "play the odds" (from the Max 2.0 tutorials).

– Pasted Max Patch, click to expand. –

February 24, 2012 | 2:33 am

What Andrew said.


February 24, 2012 | 3:51 am

i think this is the most simple.

`

– Pasted Max Patch, click to expand. –

February 24, 2012 | 4:00 am

Pretty much the same as Andrew’s with less resolution.


February 24, 2012 | 6:47 am

sorry i did not look at it in the hurry of waking up, but you’re right. though this cropped resolution thing seems nonsense to me.



Sym
February 24, 2012 | 8:25 am

Thanks you very much for your help guys!
Finally Andrews answer worked perfect for me.


Viewing 9 posts - 1 through 9 (of 9 total)