Fixed generate_numbers program