added cutrand.py