# The winner of the CodeFu 2012 Round 2 is Dejan Bozinovski

## The winner of the second iPod is Mirza Maznikar

The calculation for the random iPod touch is ((12*2)+(22*5)+(35*8)+(46*11)+(49*13) mod 58) + 2 = 51
51 = qwertyThis Mirza Maznikar

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

• 5 numbers will be taken from the Euro Millions Lottery 25th 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 58 and then added 2 (to get a range of 2-59, these are the competitors eligible for the prize)
• Example
Lottery numbers from the last week were 13, 29, 43, 47, 50
13 * 2 + 29 * 5 + 43 * 8 + 47 * 11 + 50 * 13 = 1682
1682 % 58 + 2 = 2  This means the person with number 2 (this is still an example) would receive the random iPod

The position numbers are:

2 igorkulev
3 birbbit
4 lazzrov
5 bojanserafimov
6 prankmaster
7 vasja
8 Batman
9 FILOZOF
10 obi1kenobi
11 Imaginary
12 igorG
13 darkomk
14 Vojce
15 Bujo0
16 acker
17 stef
18 KGB
19 Komita
20 st.martin
21 filipbitola
22 kujta1
23 p.bojan
24 Phreakout
26 Goran
27 Ilija139
28 AlexGvG
29 Jokerot
30 darko_b
31 NiVeR
32 CursedPerVerse
33 iksedmo
34 cava
35 LordRaydenMK
36 zigfrid
37 mmarko
38 WpXAce
39 Awesomeness
40 daca
41 kosta984
42 Dario
43 zoran
44 Krcko
45 angelov
46 schkolski
47 Baltazar
48 ZsaZsaZsu
49 Tallulah
50 marinailioska
51 qwertyThis
52 Gogo_20
53 mmK
54 asimeski
55 fjane
56 aleks
57 sumar
58 nkolev
59 XtendT