Problem 680. Hack not this Test Suite you will
Another Hack 10000 Challenge.
I am thinking of an integer between 1 and 10000.
Return a value between 1 and 10000.
I may select my number before or after your selection and will not use your number in any way if it is selected first. If I select first I may throw out my first roll and use my second. I will not roll three times.
I may randomize the random seed,rng (20-25), before both our numbers are selected but not between number selections. I may skip randomizing in a test suite. The first test suite does not change rng.
Warning: Foiling with isequal will lead to dire consequences. Kudos to Qi.
This problem can be made impossible if rng(2^32) is used and I select first as there are then multiple solutions.
Enjoy
Solution Stats
Problem Comments
-
2 Comments
go with some examples man.
example answers: 1 or 9999 or 5000.
See other Hack challenges - 205, 207, 709.
Solution Comments
Show commentsProblem Recent Solvers17
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8913 Solvers
-
1585 Solvers
-
Sum all integers from 1 to 2^n
15324 Solvers
-
Find the sum of the elements in the "second" diagonal
1149 Solvers
-
184 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!