# The winner of the CodeFu 2018 Round 2 is Vladimir Maksimovski

## The winner of the second tablet is Marjan Vrencovski

The calculation for the random tablet is (3 * 2 + 22 * 5 + 34 * 8 + 49 * 11 + 50 * 13) % 57 + 2 = 40

In order to be transparent with the choice, the following algorithm will be used:

• 5 numbers will be taken from the Euro Millions Lottery 11th of May draw
• You can see the numbers here
• Those 5 numbers will be sorted
• Then multiplied with the following factors: 2 for the smallest number, 5, 8, 11 and 13 for the biggest number, and then a total sum calculated
• Note: The factors: 2, 5, 8, 11, 13 are chosen so that there is a smallest deviation among all possibilities, i.e. all positions have the same (or very close) possibility for being a winner
• The total sum will be cut modulo 57 and then added 2 (to get a range of 2-58, these are the competitors eligible for the prize)
• Example
Lottery numbers from a previous draw were 4, 13, 30, 34, 47
11 * 2 + 14 * 5 + 15 * 8 + 27 * 11 + 44 * 13 = 1081
1081 % 57 + 2 = 57 This means the person with number 57 (this is still an example) would receive the tablet

The position numbers are:

PositionUsername
2 vasja
3 despotovski01
4 SimpleMind
5 Denis
6 Kjosev
7 limonada
8 toli
9 AleksovskiStefan
10 kujta1
11 vasilmkd
12 iletavcioski
13 krooll
14 josiftepe
15 exe
16 darijan2002
17 playmid
18 KosevaM
19 wawa
20 fspasovski
21 ktz
22 Filip00
23 weirdone
24 kikokolev
25 Suvorov
26 MTrajk
27 brankofurnadjiski
28 ljupche98
29 chip
30 Sentient6
31 xMilos
32 fdespotovski
33 shupa
34 PeckoBree
35 PassionateCoder
36 teki
37 BookHouseEffect
38 petar98
39 cava
40 mvren
41 masterdimo
42 zarya
43 Boki2110
44 NVelichkovski
45 voietimid
46 Daniel
47 Sstefanovski
48 Stefanija_Trajkova
49 zaitsev
50 anton31kah
51 ivan32c
52 wice90
53 dimebt
54 penkow
55 StefanA
56 ilijev07
57 TheRuinKing
58 xalekx