And this is why I don't gamble: Twenty-two consecutive incorrect answers using randi(10).
p=.0985 (ns), now if someone makes it to 29 consecutive wrong answers that would be some significant bad luck :)
There's an XKCD about results like this: http://xkcd.com/1478/
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3918 Solvers
544 Solvers
337 Solvers
527 Solvers
366 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!