add class Random for generate random numbers, both int and double