Eurojackpot simulation lottosimu.c
Posted: 02 Feb 2022, 07:40
I am a big fan of eurojackpot, but winning is hard and I wanted to know my chanses to win if I play a lifetime plus other questions/scenarios.
I made this eurojackpot simulation lottosimu.c to answer my questions.
Example 1. lets say there is crowd of 100 people who play lifetime of eurojackpot 1 row/week thats 2 euros. We dont want to see each game output and want a info when our saldo is over 10000 euros. We input iterations=100, game=3380, printout silence=1, cupoung silence=1, big saldo info=10000. We dont perhaps get any messages, because the terms and reality is so that its hard to get total saldo over 10000.
Example 2. lets say there is crowd of 10000 people who play 10 game rounds 1 row/week thats 2 euros. We want to see each game output, but no cuopung info and want a info when our saldo is over 1 euros. We input iterations=10000, game=10, printout silence=0, cupoung silence=1, big saldo info=1. We see lots of small wins, but rarely our total saldo is over 1 euro.
These settings can be adjusted so that you can simulate micro or macro of world of playing.
I had this code in Linux X86 PC running and there were less limits what I can do. There I used 100000 iterations, 3380 game rounds and it showed me results in 10 minutes. I was pointed out that int is 0-65535 and unfortunatly there my code goes wrong. I will fix thos shortly and see if we have enough memory for code.
I made this eurojackpot simulation lottosimu.c to answer my questions.
Example 1. lets say there is crowd of 100 people who play lifetime of eurojackpot 1 row/week thats 2 euros. We dont want to see each game output and want a info when our saldo is over 10000 euros. We input iterations=100, game=3380, printout silence=1, cupoung silence=1, big saldo info=10000. We dont perhaps get any messages, because the terms and reality is so that its hard to get total saldo over 10000.
Example 2. lets say there is crowd of 10000 people who play 10 game rounds 1 row/week thats 2 euros. We want to see each game output, but no cuopung info and want a info when our saldo is over 1 euros. We input iterations=10000, game=10, printout silence=0, cupoung silence=1, big saldo info=1. We see lots of small wins, but rarely our total saldo is over 1 euro.
These settings can be adjusted so that you can simulate micro or macro of world of playing.
I had this code in Linux X86 PC running and there were less limits what I can do. There I used 100000 iterations, 3380 game rounds and it showed me results in 10 minutes. I was pointed out that int is 0-65535 and unfortunatly there my code goes wrong. I will fix thos shortly and see if we have enough memory for code.