randomNumber = Math.random() # 0.1495611

gems = Math.ceil(2 * randomNumber * me.level) # 7

me.gems += gems # 207

They are showing you how your bonus gems from the questionnaire are generated.

roughly, round up to the nearest whole number for

2 X (random number between 0 and 1) X (your level)

http://www.cs.utexas.edu/~mitra/csFall2013/cs303/lectures/math.html

That is what i figured. So that was put there as a subtle teaching element.