added rand.py
updated