Remove dependency on external random() and rotmat() functions