You can achieve this by storing the previous element and using a simple loop to keep picking a new random element until it’s different.
You can achieve this by storing the previous element and using a simple loop to keep picking a new random element until it’s different.