Monday, July 4, 2011

To generate more random numbers we simply call rand() repeatedly:

#include
#include
using namespace std;
int main()
{
int random_integer;
for(int index=0; index<10; index++){
random_integer = rand();
cout << random_integer << endl;
}
}

No comments:

Post a Comment