Make a randomizer function