added randomtrace.py