I have a buffer of words and phrases in sorted order and I would like to have the lines sorted in a random order. How would I do this with either an emacs builtin function or with elisp?

For example, given

bar
elisp
emacs
foo
hello world
the quick brown fox

I would like some completely random result like:

foo
the quick brown fox
hello world
elisp
emacs
bar

or ...

hello world
elisp
bar
the quick brown fox
foo
emacs

Edit
Report