Fix weighted randomizer.