Random number generator as of solveet.com challenge