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

Chemistry - Bond Angles In NH3 And NCl3

AspenTech InfoPlus 21 - How To Connect And Query Data

C/C++ Why To Use Unsigned Char For Binary Data?