Hi to all thinkers out there
I don't speak english very well, so please be patient while I explain this. This is more like an exercise for me to clear my mind, but if someone suggest something, he/she is welcome.
I'm trying to make a program in C, for gammblers.
It is some kind of lottery, this is how it works:
You pick a number from 0000 to 9999, and fill your ticket with that number. Now there are a few ways to play:
1. You win if exactly the number you picked, appears as the winning number.
2. You win if any permutacion of the digits you picked appears in the winning number (e.g. I chose 1234 and I win if the winning number is 4321 or 2143, etc..). Of course you will eran less money.
3. You can chose a number that could have 1 digit repeated (e.g. 1134, 2234, etc..) and you will win if any permutacion of the digits appears in the winning number.
4. You can play to guess the final digit, the final pair of digits, the first digit, or the first two digits of the number.
So, please tell me if I'm right.
I have all the numbers that have been appearing since 1996.
So, I can calculate wich numbers are likely to show up in the next event by looking at the statistics. I say that a digit is likely to show up if the statictics says that this digit has shown up less than other.
if the digit '1' has appeared 80 times and the digit '2' has appeared 100 times, is more likely that the digit '1' shows up in the next event.
I'm building the whole program with this principle.
If someone is interested in helping me and exchange code via the Net, I will be very pleased, but not just that, I could send some of the money I earn with this program, to you, honestly.
Please, reply to this thread or write me at email@example.com, One more time, I'm serious about this, and you couldn't find someone else more honest than me.
Have a good day.