print_numbers + bugfix in rand_lim function