# The winner of the CodeFu 2013 Round 2 is Bojan Kostadinov

## The winner of the second Nexus 7 is Dejan Bozinovski

The calculation for the random Nexus 7 is ((31*2)+(33*5)+(34*8)+(37*11)+(40*13) mod 89) + 2 = 4
4 = yoyoyoman = Dejan Bozinovski

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

• 5 numbers will be taken from the Euro Millions Lottery 4th of June 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 89 and then added 2 (to get a range of 2-90, these are the competitors eligible for the prize)
• Example
Lottery numbers the previous draw were 7, 8, 19, 28, 29
7 * 2 + 8 * 5 + 19 * 8 + 28 * 11 + 29 * 13 = 891
891 % 89 + 2 = 3  This means the person with number 3 (this is still an example) would receive the random Nexus 7

The position numbers are:

2 bojanserafimov
3 birbbit
4 yoyoyoman
5 igorkulev
6 obi1kenobi
7 bedjovski
8 FILOZOF
9 lazzrov
10 filipbitola
11 igorG
12 Ilija139
13 Sirupsen
14 mmarko
15 vavio
16 Komita
17 hxbageski
18 kujta1
19 ac1d
20 stevicabozinoski
22 Kjosev
23 Natasha
24 zigfrid
25 DruiDAlek
26 Bujo0
28 Phreakout
29 Nikola
30 Goran1
31 darkomk
32 ThresherMaw
33 roberto
34 Imaginary
35 delux
36 genius_mkd
38 NiVeR
39 kiko1991
42 stef
43 stojkowski
44 acker
45 amijoski
46 DonTodor
47 Solev
48 T1T4N
49 beeblebrox
50 Granga
51 m_aleksandar
52 ombia
53 Dario
54 Tallulah
55 mmK
56 KGB
57 LordRaydenMK
58 Spejs
59 sumar
60 klikster
61 trajches
62 kpet
63 angelov
64 GoranG
65 mico
66 bigf00t92
67 timeLord
68 Fiksa
69 solar225
70 GROBARKO
71 male12345
72 marinailioska
73 Otaku
74 amanev
76 Goce_pp
77 stefankorun
78 TaseskiA
79 Krcko
80 fjane
81 moni_qwerty
82 SYS
83 crazystuff
84 pali_gasi
85 Tanurovski
86 chessmaster