added function to print a list of random ints based on a given count