Eurojackpot simulation lottosimu.c

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Eurojackpot simulation lottosimu.c

Post 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.
Last edited by veekoo on 22 Nov 2023, 14:10, edited 5 times in total.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
Attachments
IMG_1025.jpg
IMG_1025.jpg (2.96 MiB) Viewed 3892 times
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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!
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post by veekoo »

Here is current version. Fix version means that you can input fixed row of your choice.
Last edited by veekoo on 22 Nov 2023, 14:20, edited 3 times in total.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
Attachments
wintable.png
wintable.png (8.36 KiB) Viewed 3630 times
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
Last edited by veekoo on 22 Nov 2023, 14:20, edited 1 time in total.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
Attachments
lottosimufix2.gt1
(9.33 KiB) Downloaded 90 times
lottosimu2.gt1
(9.36 KiB) Downloaded 58 times
Last edited by veekoo on 22 Nov 2023, 14:20, edited 4 times in total.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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.
Attachments
KTEM_lotto.gt1
(9.34 KiB) Downloaded 78 times
KTEM_lottofix.gt1
(9.61 KiB) Downloaded 69 times
taulukko.PNG
taulukko.PNG (20.65 KiB) Viewed 2287 times
Last edited by veekoo on 22 Nov 2023, 14:20, edited 9 times in total.
veekoo
Posts: 121
Joined: 07 Jun 2021, 07:07

Re: Eurojackpot simulation lottosimu.c

Post 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)
Post Reply