Hi I need some help with a loop
I want a random number to be generated that is not equal to 3 different, and previously defined variables.
The loop I have is like this one below
random = randomNum.next(0, 10)
while random = first or second or third
random = randomNum.next(0, 10)
end while
first, second, and third are previously defined short integers that have different values.
I thought this would work however my program gets stuck in an endless loop =(
How do I define more than one requirement for a while loop? Apparently or isn't working for me :(