/ Published in: Other
Expand |
Embed | Plain Text
if out_of_order_events: randomized_logfile_lines = [] while len(logfile_lines): randomized_logfile_lines.append(logfile_lines.pop(random.randrange(0,len(logfile_lines)))) logfile_lines = randomized_logfile_lines
Comments
Subscribe to comments
You need to login to post a comment.

this is probably almost exactly the same as: random.shuffle(logfile_lines)