Question:

How to make a lottery program using c++?

by  |  earlier

0 LIKES UnLike

Am looking for a simple way to make a lottery program using c++

 Tags:

   Report

1 ANSWERS


  1. I don't do C

    But, the idea is to create random set of numbers from a preset range of numbers.

    Let's say, you want your lottery to be a pick 6, and from number 1-50. Then you'd set  a variable with limit of 50, randomize it, get the result, show it(on screen, paper, what ever output), then loop it 6 times.

    To loop it 6 times, you'd have another variable to set the count to max of 6.

    With that in mind, you could have your program change as much as you like.  Just create a changeable INPUT for the two variables.  If you want 10 numbers out of 1-80 then INPUT that and have program show the result.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions