compare random number