How to pick a random english word from a list

Word lists need not take up all that much space.

Here's a JSON wordlist with 2,465 words, all nouns. It clocks in at under 50K, the size of a medium-sized jpeg image.

I'll leave choosing a random one as an exercise for the reader.


You could have the function try and parse an online resource such as:

http://www.zokutou.co.uk/randomword/


You can't. There is no algorithm to generate meaningful words. You can only generate words that sound like English, but they won't have any meaning.