Random variables changing for no reason

But 'pNum' gets set to 1...7 as the first thing in loop() so that condition is never valid