1 2 3 4 5 6 7 8
#include<stdio.h> #include<stdlib.h> #include<time.h> int main ( int argc, char *argv[] ) { srand( time(NULL) ); printf("Lewis, your number is %d.\n", rand()); }