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.
French Loto
Moderator: Benj
-
Spanish_dude
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
Re: French Loto
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.
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.
-
medelec35
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: French Loto
That's kind of what I did when I created a lottery number generator.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.
See http://www.matrixmultimedia.com/mmforum ... =26&t=8025
Martin