Page 1 of 1

Eurojackpot simulation lottosimu.c

Posted: 02 Feb 2022, 07:40
by veekoo
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.

Re: Eurojackpot simulation lottosimu.c

Posted: 02 Feb 2022, 12:39
by veekoo
Nine lifetimes of eurojackpot and number 9. gets a big saldo, before this there was no one and saldo limit is 1 euro! This is reality of lotto.
I took couple of hours to reach number 9. and after that it has been couple of hours quiet.

You might win up to 6760 euros total, but after 3380 game rounds your saldo is zero. Maybe its mad to count up to 3380 game rounds and 10000 iterations. You might try first iterations=10 and games=10 and play with output reports. 0/0/0 gives you full output reports.

Re: Eurojackpot simulation lottosimu.c

Posted: 12 Feb 2022, 07:29
by veekoo
March 19. rules are changing. Star numbers 10 -> 12 and maximum win of 120 milj. €. Eurojackpot will be played at tuesday and friday!

Re: Eurojackpot simulation lottosimu.c

Posted: 15 Feb 2022, 14:27
by veekoo
I asked national money games organization if they have the new win tables already, so that I can simulate the coming eurojackpot. Each win class gets couple of euros addition I guess. The answer was no, they don't have the new win tables.

Looking the current win table I noticed that there is a bug in simulation, it misses 3+0 win class of 15 euro win. I have corrected this, but currently it's comiled only to devrom.

Re: Eurojackpot simulation lottosimu.c

Posted: 16 Feb 2022, 06:07
by veekoo
Here is current version. Fix version means that you can input fixed row of your choice.

Re: Eurojackpot simulation lottosimu.c

Posted: 16 Feb 2022, 16:42
by veekoo
Here are the probabilities for each win class. Each one of us can make estimates how it will be in a month. X+0 will be easier to win, so it might get less win money. X+1 and X+2 will be harder to win, so it might get more win money.

I made test version for new wins following the table, but I didn't see that it would be easier to win things. It will get harder to win somethings.

Re: Eurojackpot simulation lottosimu.c

Posted: 17 Feb 2022, 07:19
by veekoo
I thought it would be intresting to simulate the coming new Eurojackpot. Will it be easier to get small or big winnings. Well here is a sneak peek to it. We dont know much about it apart star numbers are 1-12 and main pot will be 10 000 000 - 120 000 000 euros. I calculated probabilities for each win class and made assumptions what kind of win table there will be. As I said previous post X+0 will be easier to win, so it might get less win money. X+1 and X+2 will be harder to win, so it might get more win money.

Re: Eurojackpot simulation lottosimu.c

Posted: 29 Mar 2022, 12:01
by veekoo
Current Eurojackpot lottery, which is played every tuesday and friday. I fixed a bug and updated win classes and engine of game. Now using new seed to randomize results. It changed behavior. Compiled to ROMv6. -fix version means you can input fixed row to play.

Re: Eurojackpot simulation lottosimu.c

Posted: 19 Nov 2023, 16:21
by veekoo
I am currently working another lotto game simulation. It's very popular in Finland. It's called "All or Nothing" and is played in official lottosite veikkaus.fi.
The rules are you select 12 numbers from 24. Jackpot is 125 000 euros when you have 12 correct or zero correct! There are smaller prices depending how many correct or uncorrect numbers you have. If you hit extra number "clover" you get bigger price x4.

As always with lotto games you probably end up 40% back when played long time. If there is similar game in some other country it would be intresting find.

Re: Eurojackpot simulation lottosimu.c

Posted: 20 Nov 2023, 10:56
by veekoo
Suprisingly there is similar game called All or nothing. The rules vary a little bit.

https://en.wikipedia.org/wiki/All_or_Nothing_(lottery)