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/
Return the largest number that is adjacent to a zero
3778 Solvers
Which values occur exactly three times?
3842 Solvers
934 Solvers
245 Solvers
5521 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!