Random LED's
Posted: Sat Apr 13, 2013 10:28 am
Dear fellow Flowcode users
My wish is to create a small program which can generate a random variable and then make a random led turn on.
So far I have two LEDarrays with 3 leds in each and I want one LED to be turned on in each LEDarray, the LED should be selected by the random variable. As I do not want the same LED in each LEDarray to turn on, I have made two different random variables. BUT the two random variables generate the same random value each time.
My quenstion is: How can I make different variables generate different values in the same program?
I really hope anybody is able to help. If there is any quenstions please ask me.
Best regards
Aleksander Rosenkilde Kristiansen
P.S. I have attached my program.
My wish is to create a small program which can generate a random variable and then make a random led turn on.
So far I have two LEDarrays with 3 leds in each and I want one LED to be turned on in each LEDarray, the LED should be selected by the random variable. As I do not want the same LED in each LEDarray to turn on, I have made two different random variables. BUT the two random variables generate the same random value each time.
My quenstion is: How can I make different variables generate different values in the same program?
I really hope anybody is able to help. If there is any quenstions please ask me.
Best regards
Aleksander Rosenkilde Kristiansen
P.S. I have attached my program.