You can. But the point of this exercise seems to be cpu efficiency.
yea and you could print the number, mail it to your friend, ask him to call you back and type in the number on his phone. Then have a recording tool listen in on his key presses, and write them to a file.
The time scale between OP's code and yours is about the same as the timescale between yours and mine :)