On Sat, 24 Sep 2005 [EMAIL PROTECTED] wrote:

This is a bit off topic but a few of us my find this interesting, or useful! I'm
pretty much stuck on this one. And here it is...

...

Note 3: I need to implement the better way of generating random numbers.

...

//this generates a random number from min to max.
int generate_random_number(int min, int max)
{
       int i;
       int num;

       num  = rand() % (max -min + 1);

       return num;

}

If by "better", you mean one that works, that's where I'd start.

Dennis

Reply via email to