check if the random number was the same as the last random number, if so
then gen a new random number before continuing.