Monday, July 4, 2011

How to I generate random numbers in C++?

#include
#include
using namespace std;
int main()
{
int random_integer = rand();
cout << random_integer << endl;
}

No comments:

Post a Comment