Allow for the specification of a random function for determining random generation base