Updates random.py example
Updates random.py example to contain exit status for testing in jenkins/travis