/* File: projsplit.c * Author: Margot (mmckin1@umbc.edu) * Date: 20 February 2001 * SSN: None of Your Business! * Section: Mine * * This program takes the users birthday in 6 digit mmddyy * format and uses it to seed the random number generator. * Once the generator is seeded with the users birthday, * it will produce the desired set of "lucky" numbers * consistently for the user. * * This may or may not conform to your class coding standards. * See the main course webpage to be sure what those * standards are. */ #include #include "lucky.h" main() { int date, totNum; PrintGreeting(); /* Priming Read */ date = GetValidBDay(); /* Sentinel Value is 0 to quit the program. While they * don't want to quit. */ while(date != 0) { SeedRand(date); printf("How Many Lucky Numbers Do You Need? "); scanf("%d", &totNum); PrintNRandNums(totNum); date = GetValidBDay(); } }