aangurets/7.1.Random number generator

homework redone according to comments