with violation indication by generating a random number