rotation_test function

Carry out a rotation randomization test.