Scramble UV values in GLSL

Hi!

I’m looking for a way to scramble uv coordinates in glsl. For a given texture I want to make sure all coordinates are loaded from the texture based on instance ID, but in pseudo random order.

That is I want all pairs of instances - uv coordinates to be mixed up, but in a consistent way.

Any suggestions how to accomplish this?

cheers

Martin