title: How can I generate 4 - digits random number in C?
body: <p>I'm trying to generate a 4 digits number using C. I think that we are able to use the 'rand' function, however it generates random numbers with random digits, not only 4. We have to generate a 4 - digits number.</p>
  
  <p>Any help?
  Thanks in advance!</p>