lundi 31 octobre 2016

Restricting the rand function in C

How do I generate a random number in a range? i have to generate a random number from 0-5 using the rand() function and mod math (%) to get those numbers




Aucun commentaire:

Enregistrer un commentaire