Zizaco/factory-muff — pull request #10 by dustinlyons (2013-06-09 19:50:46+00:00)
Title: Use mt_rand to pick a random word instead of popping from array

We use an in-memory sqllite database to test our database models. When using FactoryMuff I quickly go through the wordlist as we migrate up / tear down the database for each new test.

I found it a more novel solution to simply randomize the words, instead of removing them from the array, as this protects against hitting a hard limit of the wordlist.

As it's purely dummy data, I can't think of a situation where someone would expect or rely on FactoryMuff to generate unique values.