Hello again Dave,
I'm not sure if you'll be notified of a new reply to this thread, however, I'll ask away in the hope that it will be seen.
I've generated the codes successfully and am now wishing to import them (as a CSV text file) into MySQL to form a table. I'm stumped as to where I could make an adjustment near the 'say' method (within your kindly provided program) so that a comma is inserted directly after each random value, so that the resultant file could then be imported into MySQL via MyPhpAdmin GUI.