Using shuf, my favourite, rarely used gnu textutil.
shuf /usr/share/dict/words|head -4|tr '\n' ' ';echo shuf /usr/share/dict/words|head -4|tr '\n' ' ';echojust the same, sort -R is GNU only and not POSIX