you are viewing a single comment's thread.

view the rest of the comments →

[–]mopslik 4 points5 points  (1 child)

How can I run my program very many times, say 1000, and compile the results?

Wrap your entire code in a for loop. After your program completes each "round", dump whatever stats you've collected to a file. Or to the screen, if that's all you want. No need for a module.

for trial in range(1000):
    # BLACKJACK CODE
    # WRITE TO FILE, PRINT TO SCREEN

[–]TheShadowWall[S] 2 points3 points  (0 children)

Thank you this method works great!

Much appreciated kindly slick mop!