# The winner of the CodeFu 2012 Round 1 is Bojan Kostadinov

## The winner of the second iPod is Aleksandar Popovski

The calculation for the random iPod touch is ((20*2)+(27*5)+(30*8)+(36*11)+(43*13) mod 63) + 2 = 49
49 = Mirage = Aleksandar Popovski

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

• 5 numbers will be taken from the Euro Millions Lottery 27th of April 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 63 and then added 2 (to get a range of 2-64, these are the competitors eligible for the prize)
• Example
Lottery numbers from the last week were 3, 6, 29, 32, 41
3 * 2 + 6 * 5 + 29 * 8 + 32 * 11 + 41 * 13 = 1153
1153 % 63 + 2 = 21  This means the person with number 21 (this is still an example) would receive the random iPod

The position numbers are:

2 obi1kenobi
3 igorkulev
4 birbbit
5 bedjovski
6 vasja
7 yoyoyoman
8 lazzrov
9 daca
10 bojanserafimov
11 Goran
12 FILOZOF
13 ZLATKO
14 igorG
15 Imaginary
16 kujta1
17 acker
18 Bujo0
19 shupa
20 st.martin
21 filipbitola
22 darkomk
23 CursedPerVerse
24 Komita
25 mmarko
26 GROBARKO
27 LosT_in_SpaCe
29 gele123
31 LordRaydenMK
32 KMeN
33 gella
34 stef
35 KGB
36 WpXAce
37 Krcko
38 Phreakout
39 darko_b
40 NiVeR
41 Dario
42 p.bojan
43 kosta984
44 XtendT
45 qwertyThis
46 karakondjul
47 luckybee
48 Antagonist
49 Mirage
50 marinailioska
51 mmK
52 azder