jeudi 15 mars 2018

Random numbers -200 to 700? (In C) [duplicate]

This question already has an answer here:

randomNums[i] = rand() % (0 + 11);

produces numbers between 0 and 10, but how do I make the range to include negative numbers, -200 to 700?

Thank you




Aucun commentaire:

Enregistrer un commentaire