# The winner of the CodeFu 2014 Round 2 is Borko Jovanovski

## The winner of the second Nexus 7 is Ervin Kamberoski

The calculation for the random Nexus 7 is (23 * 2 + 26 * 5 + 29 * 8 + 37 * 11 + 40 * 13) % 72 + 2 = 41

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

• 5 numbers will be taken from the Euro Millions Lottery 16th 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 72 and then added 2 (to get a range of 2-73, these are the competitors eligible for the prize)
• Example
Lottery numbers from a previous draw were 4, 13, 30, 34, 47
4 * 2 + 13 * 5 + 30 * 8 + 34 * 11 + 47 * 13 = 1298
1298 % 72 + 2 = 4  This means the person with number 4 (this is still an example) would receive the random iPod

The position numbers are:

2 VasilK
3 jovank
5 VikiP
7 bedjovski
8 Kjosev
9 songoku
10 kujta1
11 Ilija139
12 Scentini
13 Natasha
14 Goran1
15 stevicabozinoski
16 R2D2
17 genius_mkd
18 pali_gasi
19 MTrajk
20 AleksovskiStefan
21 vasilmkd
22 hxbageski
23 NeSumHaker
24 mmducmanhmm
25 sonne
26 ombia
27 acker
28 T1T4N
29 ivanstojanov1990
30 i_arsovski
31 zigfrid
32 Nikola
33 KGB
34 tStojkovski
35 schkolski
36 yoyoyoman
37 mico
38 ivan85mk
39 nkolev
40 vavio
41 NiVeR
43 ThresherMaw
44 unknownPlayer
45 GorjanZ
46 husejn_rm
48 statik
49 MrInF3ction
50 karakondjul
51 kosta984
52 judomaster
53 dekob_
54 Leon123454321
55 martinbt
56 Mirage
57 biljanaristovska
58 ppetrov
59 roberto
60 DruiDAlek
61 mephisto
62 delpfine
63 mihail1457
64 mboncanoski
65 hendrix
66 Whathell
67 viktorpetrovski