Problem 1729. Can you beat the lottery again (for hardcore coder) ?
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Claudio Gelmi
on 27 Jul 2013
Sorry about that...it was only for learning purposes...
-
1 Comment
Armando Villani
on 22 Jun 2014
"rng(stream.Seed);" instead of "rng(stream.get('Seed'));" gives a lower code size of 24.
-
2 Comments
Armando Villani
on 22 Jun 2014
Why not "s.State(end)=0;" instead of "s.State(end)=s.State(end)-s.State(end);"?
Jean-Marie Sainthillier
on 11 Jul 2014
At that time, I didn't understand the stream correctly...
Problem Recent Solvers12
Suggested Problems
-
268 Solvers
-
Make a random, non-repeating vector.
6473 Solvers
-
Remove the two elements next to NaN value
604 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
751 Solvers
-
470 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!