Added new setToRandomPositions function that allows custom random number generator to be specified
Maintain ordering of poses in order that IK solver expects