TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

Add simple methods to help generate random data #162

Closed sindbach closed 8 years ago

sindbach commented 8 years ago

Added simple methods: randomWord(), randomNumber() and randomDate that can be used in a mongo shell via foreach loop to generate random data. Useful to generate data to play around or test development.

Also updated the README.md to include method signatures and usage examples.

TylerBrock commented 8 years ago

This is awesome! Sorry for the delay in reviewing. Would you mind adding some whitespace to the data generation example, just so it isn't a one liner?

sindbach commented 8 years ago

README.md has been updated, please review when you have the chance. Thanks.