Problem 1729. Can you beat the lottery again (for hardcore coder) ?
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Sorry about that...it was only for learning purposes...
-
1 Comment
"rng(stream.Seed);" instead of "rng(stream.get('Seed'));" gives a lower code size of 24.
-
2 Comments
Why not "s.State(end)=0;" instead of "s.State(end)=s.State(end)-s.State(end);"?
At that time, I didn't understand the stream correctly...
Problem Recent Solvers12
Suggested Problems
-
263 Solvers
-
Area of an equilateral triangle
4237 Solvers
-
746 Solvers
-
2650 Solvers
-
Number of Even Elements in Fibonacci Sequence
904 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!