I have published a random generator that creates leveled NPCs (also linked above) using the rules in the AD&D 1e Players Handbook and Dungeon Masters Guide. The output, which can be downloaded as a plain text file, includes the usual stats along with the (sometimes very odd) random personality fields from the DMG. Users of the script can choose to create random NPCs, or choose specific classes, races, and/or levels. One caveat: choosing a combination not allowed in the 1e rule-set can generate malformed NPCs. As with the weather generation script, I would appreciate any feedback about the usefulness of this tool and/or improvements that could be made.
One last note: I have separate random generators for creating non-adventurer NPCs and populating city districts that I will post at a later date (they are a bit more complex).