add some usage for Timer.
add a random integer generator for generating numbers in fixed range.