title: How to use random() in C
body: <p>So I am currently learning C, and I have some confusion about how the <code>random()</code> function works.
  I know I have to provide a seed, but I don't know how to actually generate the random number.</p>
  
  <pre><code>srandom(seed);
  long int value= random(40);
  </code></pre>
  
  <p>When I try this it gives me a compiler error:</p>
  
  <pre><code>too many arguments to function ‘long int random()
  </code></pre>
  
  <p>The end goal is to get a random number between 1 and 40.
  I should add that the goal is to not use the <code>rand()</code> function.</p>