#include <stdio.h> #include <stdlib.h> int main () { int i, n; time_t t; n = 5; srand((unsigned) time(&t)); for( i = 0 ; i < n ; i++ ) { printf("%d\n", rand() % 50); } return(0); }