title: How to generate random numbers in C++ without using time as a seed
body: <p>My program is supposed to generate random number with a fixed maximum of 9999. These numbers are used to create objects. Now the problem is when using time as a seed, if I create two objects one after the other both will be created with the same number (as the time hasn't changed in the process).</p>
  
  <p>How can I do that more efficiently so I can generate a distinct random number every time I run the program?</p>