Pick 4 random numbers. Check if any are equal. If they are, change one. Repeat until you have no more duplicates.