Watson1978
9/23/2012 - 6:55 AM

rand.c

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
    srand(time(NULL));
    printf("rand = %d", rand() % 7);
}