Matthew Hipkin
Random Name Generator
Download: https://github.com/hippy2094/codelib/
Creates an XML file containing a list of random names and ages up to the value specified in TOTALCOUNT (line 10).
Requires FreePascal to build and for both firstnames.txt and surnames.txt to be in the same directory.
Building
After installing FreePascal, simply run the following command to build:
# fpc createnameslist.pas
Then execute the created createnameslist[.exe] binary.
Example output (TOTALCOUNT = 3):
<?xml version="1.0" encoding="UTF-8" ?> <people> <person> <firstname>Leonard</firstname> <surname>Walker</surname> <age>68</age> </person> <person> <firstname>Lisa</firstname> <surname>Paterson</surname> <age>51</age> </person> <person> <firstname>Christopher</firstname> <surname>Harris</surname> <age>7</age> </person> </people>
For the latest version of the source and the required text files, visit github.
blog comments powered by Disqus