When we write the program for generating random numbers, we use different functions like rand(), srand() and srand(time(null)). We know that rand() helps us in generating random numbers using an algorithm and srand(time(null)) helps us to generate di...

posted
Jun 20, 2020
Lalit Kumar
1,240 points