Generating a random number without random function : <p>i need to generate a random number without using "random" function so i found this code which give me mlliseconds in system: </p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;sys/timeb.h&gt;

int main()
{
struct timeb tmb;

ftime(&amp;tmb);
printf("tmb.time     = %ld (seconds)\n", tmb.time);
printf("tmb.millitm  = %d (mlliseconds)\n", tmb.millitm);

return 0;
}
</code></pre>

<p>it was working good until i tried to use it inside struct in this way :</p>

<pre><code>#include &lt;sys/timeb.h&gt;
#include "stdlib.h"
struct Num{
struct timeb tmb;
ftime(&amp;tmp);    
};
int main()
{

return 0;
}
</code></pre>

<p>its giving an error at {ftime}.
any help ? </p>
