(rand() % 100 + 1) Perfect explanation! Thank you
(rand() % 100 + 1) "(rand() % 100 + 1)" - why does it give random number < 100? I started to learn c++ couple of weeks ...
Unusually high unsigned intIt is a surprise, cause tutorial I am using stated this: "The standard function rand() is called wi...
Unusually high unsigned intWrite your question here. I am a bit surprised that unsigned int generates unusually high numbers wa...
This user does not accept Private Messages