PDA

View Full Version : SELECTING A RANDOM OUTPUT



ziom
18-03-2004, 09:54
Dear Sir/ Madam,
I need help getting my picaxe chip 18/18a to select a random output. How do I do that? I have 4 outputs and I want a high signal to randomly go to either 4 outputs.
Once a button is switched at that particular output it should be reset, stop and randomly select again.

I would appreciate any help,
Kind Regards,
Munim Moiz

thex12
10-04-2004, 04:00
the easiest way i can thinking of is generating a random number then just adding multiple if b0=1 then blah.. if only it had arrays :/