added rescaling as randint.py