Added randomizer function