New setToRandomPositions function with custom rand num generator

Added new setToRandomPositions function that allows custom random number generator to be specified

Used for benchmarking with stochastic behavior. Useful with https://github.com/ros-planning/random_numbers/pull/7