Hi, I’ve been stumped for a while now and think I am overthinking this.
I want to have a vector that excludes a certain value (in this case 2) AND each element is unique (no repeats). My thought is that while my two conditions are true, the while loop should keep running until they are both false. This is probably the wrong logic, so I need to ask for advice.
QWER = rand(1:6, 4)
while QWER === 2 || unique(QWER) !== 4
QWER = rand(1:6, 4)
end