Added a check to generate a unique random number