French Loto

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
jeannot
Posts: 4
Joined: Sat Nov 28, 2009 2:57 pm

French Loto

Post 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.
Attachments
LE LOTO.fcf
(9 KiB) Downloaded 232 times

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

Post 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.

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

Post 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
Martin

Post Reply