Python version of randomizer is implemented