Split out random function and setup parameters to a Setup class