Minecraft – How to pulse one of several wires in Minecraft randomly

minecraft-java-editionminecraft-redstone

My question is a bit familiar to How can I randomly power one of several wires in Minecraft?, but slightly different.

Let's say I have 5 wires (or more), wire A, B, C, D and E. Now, I want to randomly pulse one of them with the hit of a button. However, there should be a greater chance to pulse wire A and B, then the chance to pulse C and D. Also, the chance to pulse E should be smaller then A, B, C and D.

How can I achieve this?

Best Answer

Have a pulse going around in a loop. Along one side, take the first repeater and set it to the longest time delay (for heightened probability), followed by 1 redstone, then the rest of the loop.

Should look like this:

Key:

I = Long setting W = Redstone wire

Current is anticlockwise

wwwww
w   w
w   w
w   w
w   WWWWW
w   I
wwwww

Here the line of W's is line A.

Repeat with B

Next, repeat with C and D, but with shorter delays. (Probability)

Leave E without an extra delay.

Next, make an AND gate on each line. One input will be the button, the other will be the line. The output of those are the lines A, B, C, D and E.

Please comment if you don't understand and I will amend as appropriate.