1

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?

3
  • This is pretty messy, but I think it can be done with some dropper randomizers. I'll mess with it a bit. – Unionhawk Oct 13 '14 at 0:54
  • Would this help? (Might be related to this question.) – user271360 Oct 13 '14 at 4:56
  • Er @Sebie - He already quoted that question. Anyways, what you could do is follow the instructions outlined in that question THEN make a gate that when powered, it pulses an output and then cuts the output until the input is turned off (and back on again, like the way a button works, except reversed). – aytimothy Oct 13 '14 at 9:28
1

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.

2
  • Won't this just generate a sequence rather than a random (or psedorandom) triggers on the 5 wires – Richard Tingle Oct 15 '14 at 17:58
  • @RichardTingle It'll create a sort of roulette wheel effect, except without any visual feedback on where the wheel is. It's not ideal as far as randomness goes, but it's pretty effectively pseudorandom. The AND gates make it so an output is selected only when the button is pressed. – Unionhawk Oct 20 '14 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.