Today I needed to write a passphrase generator and I was looking around for a good word list for this. The EFF publishes a list of words that are a good fit for passphrases for reasons they explain. Very nice!
Dead-simple Ruby code to generate some passphrases that are 3 words long, include a digit, capital letters, and dashes.
words = 3.times.map { word_list.sample.capitalize }
ix = rand(words.count)
words[ix] = format("%s%i", words[ix], rand(9))
words.join("-")

EFF Dice-Generated Passphrases
Create strong passphrases with EFF's new random number generators! This page includes information about passwords, different wordlists, and EFF's suggested method for passphrase generation. Use the directions below with any set of dice.And now, a message from internationally renowned security...