I was recently cleaning up some awful code and extracted this piece as a general purpose function.
I have problems with using VI Package manager at work and also still run LabVIEW 8.6.1, so I don't know if a recent OpenG function similar to this exists.
Select Random Array Indices.vi