How to get a random element from an array thats different from previous one?

no, i want to use the same element later on, its just sometimes the same element is being used twice at the same time.