Friday, 27 September 2013

Coin Toss game in R

Coin Toss game in R

So trying to make a simulation of a coin toss game where you double your
money if you get heads and half it if you have tales. And want to see what
you get after n throws if you start with x money
However I'm not sure how to tackle this problem in a nice clean way,
without just doing a forloop to n.
Is there some clean way to do this?

No comments:

Post a Comment