You can't use the python random stdlib module in RPython, this needs to use the Ruby `Random` class that's exposed, take a look at `srand` method in `kernel.py`.