How to rotate Interior Cubemap

The Interior Cubemap material function has a bool input that enables randomizing the rotation of the cubemap texture. I want to create a scalar parameter which would control the rotation of the cubemap, but I just cant figure out the way rotation works with cubemaps.

Like this: