commented randomGenerator.py