adding generator method for random integer"