The person above has outlined a very effective method of doing this, but I’ll add a link to a very helpful post about randomizing arrays.
It’s from before the current way arrays work, but the principles are still functional.
I am using something similar. I’ll post an example when I’m back at my computer, with my files.