Page 1 of 1

French Loto

Posted: Fri Apr 15, 2011 2:25 pm
by jeannot
Hello,
Drawing of five numbers and a supplementary number.
Only defect a number can be draws several times .
This programm works with Eblock switch board and LCDboard.

Good luck.

Re: French Loto

Posted: Fri Apr 15, 2011 5:49 pm
by Spanish_dude
Hi,

To solve your problem use an array to store the value of the lotto numbers and check if the "new" number already is set in that array.

BR,

-----

Salut,

Pour résoudre ton problème tu pourrais utiliser un tableau de bytes ou tu y "sauvegarde" les chiffres du lotto.
A chaque "sortie" de numéro tu vérifies si le numéro est présent dans le tableau de bytes.

Cordialement,

Nicoals L. F.

Re: French Loto

Posted: Fri Apr 15, 2011 10:22 pm
by medelec35
Spanish_dude wrote: use an array to store the value of the lotto numbers and check if the "new" number already is set in that array.
That's kind of what I did when I created a lottery number generator.
See http://www.matrixmultimedia.com/mmforum ... =26&t=8025