GenerateData is a free, open source tool written in JavaScript, PHP and MySQL that lets you quickly generate large volumes of custom data in a variety of formats for use in testing software, populating databases etc. There's an online demo where you can tinker around to get a sense of what the script does, what features it offers & how it works.