title: How to generate random 32bit integers in c++
body: <p>My understanding is that RAND_MAX is dependent on the architecture of the machine. If the machine is 32bit, than rand() will only generate something up to 4byte. How do I generate a 32bit random integer on a 64bit machine with rand()?</p>
  
  <p>Also, do I always need srand() if I want to generate billions of random integers with rand() later?</p>