ex6.4 - ints() to generate a list of random ints; tail recursive implementation