standupmaths / frog_problem

Here is the frog problem code I wrote in an Edinburgh pub.
17 stars 16 forks source link

Added new version showing a histogram and average. #4

Open pcholt opened 5 years ago

pcholt commented 5 years ago

I pulled the random import out of the code - I think that's a performance improvement?

Instead of changing the code I added a new file which runs by default 100,000 crossings, with between 0 (stream does not exist :) ) and 200 hops required, generating an interesting histogram for each group of 100,000 crossings.