What is the most efficient way to select 2 unique random elements from an array (ie, make sure the same element is not selected twice).
I have so far:
If you want to get n random elements you could create a shuffled version of your list and then return the first n elements of the shuffled array as a result.
n