Take the first 50 characters of the output of the "ls" command, use them as filenames, and then pipe the contents of those files to the "sort" command to randomly sort them, and then pipe the output to the "uniq" command to remove any duplicate lines, ignoring case.
cat $(ls | head -c50) | sort -R | uniq -u -i