jeudi 17 novembre 2016

Random odd numbers between range with the exception of a single number in C

here is my code:

alpha = ((rand() % 12) + 1) * 2 + 1;

i want to generate random odd numbers between 0-25. But except integer 13. How can i fixed this? Thank you.




Aucun commentaire:

Enregistrer un commentaire