//*********************************************************************** // File: lotto.cc // Author: // Create Date: // Last Modified: // Class: // Language: // Purpose: This program generates lottery numbers // Input: (from standard input) an integer // Output: (to standard output) a listing of lottery numbers // Pledged: // //*********************************************************************** #include #include #include int main( void ) { // Function prototypes // Constant declarations // Local variable declarations // Initialize the random number generator // Generate and display numbers } // end main() //************************************************************ // int Random ( int minValue, int maxValue ) // Purpose: produces a pseudo-random number // Parameters: integer representing the maximum value // that can be generated // integer representing the minimum value // that can be generated // Postcondition: returns a pseudo-random number in the // specified range //************************************************************ int Random ( int minValue, // min value that can be generated int maxValue) // max value that can be generated { return ( (rand() % maxValue) + minValue); } // end Random()