0 évaluation0% ont trouvé ce document utile (0 vote)
661 vues1 page
This document defines functions to generate 7 random lottery numbers between 1 and 34, display them sorted, and allow the player to choose to play again or quit. It sets the number of digits to draw to 7, defines a random-num function to generate and sort the random numbers, calls that function, and defines a play-again function that prompts the user and calls random-num again if they choose y, otherwise ends the game by displaying a goodbye message.
This document defines functions to generate 7 random lottery numbers between 1 and 34, display them sorted, and allow the player to choose to play again or quit. It sets the number of digits to draw to 7, defines a random-num function to generate and sort the random numbers, calls that function, and defines a play-again function that prompts the user and calls random-num again if they choose y, otherwise ends the game by displaying a goodbye message.
This document defines functions to generate 7 random lottery numbers between 1 and 34, display them sorted, and allow the player to choose to play again or quit. It sets the number of digits to draw to 7, defines a random-num function to generate and sort the random numbers, calls that function, and defines a play-again function that prompts the user and calls random-num again if they choose y, otherwise ends the game by displaying a goodbye message.