modified:   rand.py