I'm too dumb for boolean logic


#1

The situation:

I have 2 parameters, A and B, both are integer values between 0-60 in steps of 4 (0, 4, 8...52, 56, 60). A is controlled by a knob, B is chosen randomly on every tick of a bang.

I would like to add a second knob, which increases the probability of the value B being chosen in stead of A, each time the same bang that randomises B ticks. So knob is at 0 = always A, knob at 64 = always B.

I don't know if it's the age or self-inflicted brain damage, but I just can't work it this simple maths/logic problem.


#2

HA! Found it!
Who needs a working brain when you have @philoop and his "phi/prob/%sw2_1i" object.