samedi 24 août 2019

C++ - writing code to pick up random lotto number exclude the past winning number

I would like to run a program that auto pick up 5 numbers from 45 (1 to 45), no duplicate number. The odd number must have higher drawn percentage. (mean the odd must be 3 numbers, even 2 numbers). And the result exclude all the past winning numbers (exclude arrays). Examples for past winning numbers: 09-17-36-44-49, 24-25-36-39-41, 06-20-37-43-44, 04-07-24-31-35, 01-03-22-32-40, Thank you

I can write a program to pick up random numbers only, don't known how to combine other conditions.




Aucun commentaire:

Enregistrer un commentaire