rand() function is used in C/C++ to generate random numbers in the range
[0, RAND_MAX).
The srand() function sets the starting point for producing a series of
pseudo-random integers. If srand() is not called,
the rand() seed is set as if srand(1) were called at program start.
Any other value for seed sets the generator to a different starting point.