Decide Object with adjustable probability

Feb 23, 2012 at 11:49pm

Decide Object with adjustable probability

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!

#61889
Feb 24, 2012 at 12:24am
– Pasted Max Patch, click to expand. –
#223483
Feb 24, 2012 at 1:51am

start with random or expr … plus if or gate …

#223484
Feb 24, 2012 at 2:15am

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. –
#223485
Feb 24, 2012 at 2:33am

What Andrew said.

#223486
Feb 24, 2012 at 3:51am

i think this is the most simple.

`

– Pasted Max Patch, click to expand. –
#223487
Feb 24, 2012 at 4:00am

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

#223488
Feb 24, 2012 at 6:47am

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.

#223489
Feb 24, 2012 at 8:25am

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

#223490

You must be logged in to reply to this topic.