Get Started
523

Q: What's the difference between the functions rand(), random(), srand() and randomize()?

  • Show Answer
  • Workspace

Answer :
Explanation :

rand()  returns a random number random()  returns a random number in a specified range srand()  initialise a random number generator with a given seed value randomize()   initializes a random number generator with a random value based o time.

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today