N0B0DY-1N-P4RT1CUL4R
Member
I'm trying to figure out how to get a variable to generate a random value between 1 and 4 then turn on a bulb that corresponds to that value but so far I'm just getting syntax errors, if you can point out the faults I would be very thankful
Code:
symbol delta = b0
max; b0 = 4
min; b0 = 1
random delta
if delta = 1 then{
high b.4
wait 2
low b.4}
if delta = 2 then{
high b.5
wait 2
low b.5}
if delta = 3 then{
high b.6
wait 2
low b.6}
if delta = 4 then{
high b.7
wait 2
low b.7}
set; b0 = 0