Mail Archives: djgpp/1997/08/28/08:50:08
In article <33F4D7FB DOT 74A2 AT cs DOT com>, fighteer AT cs DOT com wrote:
>Matt McFadden wrote:
>Example code:
>#include <stdio.h>
>#include <stdlib.h>
>#include <time.h>
>
>int rolldice( int ndice, int nsides )
Hmmm...
I typed this one in, and the following happened:
How many dice? 1
How many sides 10
The result is -1892526920
That must have been one helluva roll eh?
Anyone know why I get this answer?
I have checked the code? Its fine! (what little there is!)
BaiBai
Rob.
West Oz
- Raw text -