At 12/8/2009 10:26 PM, you wrote:
>     include <stdio.h>
>     include <time.h>
>
>int main(void)
>{
>     srand(time(NULL));
>     printf("%i\n",ran(void));
>     }
>
>Now where do I stick the modulus at here to get single digit numbers?
>
>Bill

printf("%i\n",rand()%10);

~Rick 

[Non-text portions of this message have been removed]

Reply via email to