Clusters

p is the probability of 1
q is the probability of 0
π is the probability of b (the breaker)

p+q+π=1

Input a value for p in (0,1):
Input a value for π in (0,1):
The value of q in [0,1) is automatically obtained as 1-p-π
How many breakers would you like to generate (an integer > 1)?
Or simply input your own sequence of {0,1,b}: