Sort A to Z, deduplicate, reverse, shuffle, trim or number a list of lines in one pass, then copy the result without opening a spreadsheet.
The result appears hereThe first one written. Duplicates are removed before any sorting, so the survivor is the one that came first in your input rather than whichever happened to sort first.
It removes leading and trailing spaces on each line. Worth leaving on for a pasted list, because two lines that differ only by a trailing space are not duplicates until they are trimmed.
Each line takes a random key from crypto.getRandomValues and the list is sorted by it, which gives an unbiased order rather than the skew a naive swap loop produces.