randomtrace.py