mercredi 15 avril 2020

Is there a way to generate random numbers in a range (ex. 10 - 14) using rand() and srand()? [closed]

I've been looking for a method to use rand() and srand() to generate random numbers in a specified range. I have tried using mt19337 with no success. I've been told that using mt19337 is a non-modern way of doing it. How can I use rand() and srand() to generate random numbers in range?




Aucun commentaire:

Enregistrer un commentaire