aangurets/7.1.Random number generator

homework redone according to comments
Чем не нравиться ``i``?