Changed name generater to use for loop.

Using a for loop reduces LOC and induces fewer autism attacks.