A collection of random generator source code. These are free to download and use, though refer to the specific license attached to each for details.
Generate names from sample sets and Markov chains.
Generate text strings from pattern and token tables.
Generate random world maps using fractal faulting.
Generate random dungeon maps.