Script to unorder an ordered list

Wondering if someone could help me with this in any scripting/programming language. I have a list of ordered IP addresses and I want to unorder them. So for example, if I had a file like this:

111.111.111.110
111.111.111.111
111.111.111.112
111.111.111.113
111.111.111.114

I would want to make it so that is unordered. It does not matter the outcome as long as they are not in ascending/descending order. So something like the following would be acceptable:

111.111.111.112
111.111.111.110
111.111.111.114
111.111.111.113
111.111.111.111

I would need to do this on very large lists of IP addresses such as 500. Any help would be very much appreciated.

The semi-obvious Google search seems to bring up promising hits.

Instead of the "unorder.txt" replay your filename and try the below.

perl -wne 'printf "%f,%s", rand 1**2, $_' <unorder.txt |sort|cut -d"," -f2

Just to make the solution more general, you need -f2- in case the input contains commas.

First check whether your shell has $RANDOM.
echo $RANDOM $RANDOM
(Should give two different numbers)
We can then number the lines randomly, then sort them.

!/bin/ksh
(
cat list_of_ip_addresses | while read IP
do
echo "${RANDOM} ${IP}"
done
) | sort -n | awk '{print $2}'