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/
Find the sum of all the numbers of the input vector
32719 Solvers
869 Solvers
178 Solvers
Matlab Basics - Logical Tests I
199 Solvers
498 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!