flareback Posted December 11, 2009 Posted December 11, 2009 (edited) you have heads = heads++; if you do heads++ don't do the "heads =" part. it should be just heads++; should work with that change. I didn't catch that the first time through. Edited December 11, 2009 by flareback Share this post Link to post Share on other sites More sharing options...
rogue482 Posted December 11, 2009 Posted December 11, 2009 Thanks, that fixed it. Share this post Link to post Share on other sites More sharing options...
gnack Posted February 10, 2010 Posted February 10, 2010 (edited) no it's actually ok with the <= 5 because that only applies to .500000000000000000 nothing bigger. granted < 5 would be better, but <+ doesn't really skew the results Um no it's not okay, you're skewing the results. (I'm not sure how you come to the conclusion that you're NOT skewing them, to be honest.) Heads and tails should have an equal chance to show up, <= 0.5 means that one has a higher chance of showing than the other, which is inaccurate. It's pretty basic maths. For it to be even you'd need: 0.0000 - 0.4999 = heads 0.5000 - 0.9999 = tails This way, each side has 5000 possible ways to win, instead of your suggested approach which would give heads 5001 ways to win and tails 4999 ways to win. 5001/4999 != 50/50. Edited February 10, 2010 by gnack Share this post Link to post Share on other sites More sharing options...
Zertz Posted February 11, 2010 Posted February 11, 2010 This way, each side has 5000 possible ways to win, instead of your suggested approach which would give heads 5001 ways to win and tails 4999 ways to win. 5001/4999 != 50/50. Old thread and I don't think it really matters anyway! He was flipping coins, not deciding the faith of the universe Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now