C++ Random Number Generator 1-10 Code Example


Example: c++ random number between 1 and 10

cout << (rand() % 10) + 1<<" ";

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable