Hacker News new | ask | show | jobs
by nikcub 4442 days ago
or shell alias:

    cat /usr/share/dict/words | awk 'BEGIN{srand();}{print rand()"\t"tolower($0)}' | sort -k1 -n | cut -f2 | head -n 4 | tr "\\n" " "
suggestion would be to find a better word list than the default aspell since that is the entire Oxford dictionary, which isn't as memorable (although it is an interesting way to learn about new words).
2 comments

Or, if you have GNU coreutils installed (on linux, for example):

    shuf -n 4 /usr/share/dict/words
Also contains explicit words. Doesn't stop me from using it for myself, but it's not helpful if you are looking to generate passwords for others.