refactoring 'random' Int method to use Int.series() type method