title: How can I get the sourcecode for rand() (C++)?
body: <p>I'm new to programming.</p>
  
  <p>I want to know exactly what rand() does.</p>
  
  <p>Searching only yields examples on its usage. But none explain each step of how the function generates a random number. They treat rand() as a blackbox.</p>
  
  <p>I want to know what rand() is doing; each step.</p>
  
  <p><strong>Is there a resource that will allow me to see exactly what rand() does?</strong>
  This is all open source stuff isn't it? I'll settle for the disassembly, if there's no source.</p>
  
  <p>I know it returns a random number, but how does it generate that number? I want to see each step.</p>
  
  <p>Thank you.</p>