title: random number without using seed C programming
body: <p>Is there any way to generate a random number in C without using seed.</p>
  
  <p>Here what have so far but it still using srand(time(NULL)); which is a seed.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;time.h&gt;
  #include &lt;math.h&gt; /* required for sqrt() */
  #include &lt;stdlib.h&gt; /* required for rand() */
  
  int gen_rand();   /* note these are declarations of functions */
  
  void main()
  {
     int number;
     srand (time(NULL)); /* everytime you run program, it will give you different result */
  
     number = gen_rand();
  
     printf("%d is the power of 2 of %.0lf\n", number, sqrt(number));
  }
  
  /* Function generates random number power 2 of 20 - 230 */
  int gen_rand()
  {
     int n;
     n = rand() % 211;  /* n is random number in range of 0 - 210 */
     n = n + 20; /* n is now in range of 20 - 230 */
     return(n*n); /* return n to the power of 2 */
  }
  </code></pre>