1#include<iostream>
2#include<cstdlib>
3using namespace std;
4
5int main()
6{
7 int random = rand();
8 /* No srand() calls before rand(), so seed = 1*/
9 cout << "Seed = 1, Random number = " << random << endl;
10
11 srand(5);
12 /* Seed = 5 */
13 random = rand();
14 cout << "Seed = 5, Random number = " << random << endl;
15
16 return 0;
17}