Remove rand from profiling code