Eurojackpot simulation lottosimu.c

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
veekoo
Posts: 70
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.

I attached current program bpth same source, but romv4 was compiled with -map=conx

Edit: long used now in couple of variables. Input values 0-10000 (nbr) or 0/1 tested.
Edit: files removed, updated recently
Last edited by veekoo on 16 Feb 2022, 06:09, edited 3 times in total.
veekoo
Posts: 70
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 903 times
veekoo
Posts: 70
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: 70
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: 70
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.

edit. remove programs, because of bugs
Last edited by veekoo on 29 Mar 2022, 11:56, edited 2 times in total.
veekoo
Posts: 70
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 641 times
veekoo
Posts: 70
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.

edit. remove program,because of update
veekoo
Posts: 70
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. Compiled to ROMv5a. -fix version means you can input fixed row to play.
Attachments
newlottosimufix.gt1
(10.31 KiB) Downloaded 21 times
newlottosimu.gt1
(10.37 KiB) Downloaded 25 times
Post Reply