add class with methods for random number