def random_rotation_matrix(rand=None):
 return quaternion_matrix(random_quaternion(rand))

def random_rotation_matrix ( rand = None ) : return quaternion_matrix ( random_quaternion ( rand ) )
return uniform random rotation matrix .