2 ms·
The code is wrong because there is an assumption that the distribution is 50% for 10$ and 50% for 20$. There no basis for this (how do you know you won't got 40
by bluecalm 13y ago
The code is wrong because there is an assumption that the distribution is 50% for 10$ and 50% for 20$. There no basis for this (how do you know you won't got 40$ if you see 20$ ?).
See my other posts, I think this point is very well worth thinking about.