This is probably a basic question but I'm having trouble in writing a While conditional that evaluate two conditions at the same time. I have the following code. The idea is to generate two random numbers until both of them are greater than 6
a = 1 ; b = 1;
While[a < 6 && b < 6,
a = RandomInteger[10];
b = RandomInteger[10];
Print["a = ", a, " b = ", b]];
This printed for me a=8 b=1. I want b to be >6 as well. I tried a couple of variations
While[a < 6 ; b < 6,...]
While[{a < 6 ; b < 6},...]
While[{a < 6 && b < 6},...]
While[(a < 6 && b < 6),...]
While[a < 6 , While[ b < 6,...]]
None of them work! Please help a noob