/* File: hw09ex.c Simple example that uses the standard srandom() and random() functions from the C library. */ #include #include #include int main() { int i, n ; srandom(time(0)) ; printf("Here are 100 numbers between 15 and 25:\n") ; for (i = 1 ; i <= 100 ; i++) { n = random() % 11 + 15 ; printf("%5d", n) ; // print newline once for every 10 numbers if ( i % 10 == 0 ) printf("\n") ; } return 0 ; }