rand() is a function from <cstdlib> that returns a pseudo-random int between 0 and RAND_MAX (at least 32767).
Don't forget to initialize the seed with srand() before using it.
23rd Sep 2016, 10:51 AM
Zen
0
Thnx.
23rd Sep 2016, 11:02 AM
Bluebird
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :