Regular expressions are used in every language, every programmer is familiar with them. Regex can be used to easily express complex strings. What better way to generate a random data than with a tool you can easily describe what string you want?
For node.js install with npm
npm install randexp
For use in browsers, download the minified version from the latest release.