- Joined
- 3 July 2007
- Posts
- 153
- Reactions
- 0
I got 617. Here is the reasoning.
Assuming numbers are generated perfectly, you will get a linear distribution (i.e. not a normal distribution).
My strategy is to wait for n numbers to be generated before calling the next number that is greater than all the existing numbers the largest number.
After n number has been generated, the chances of having the highest number already being generated is n/1000. The chances of having (any of) the remaining numbers being greater than all the exisiting numbers is (1000-n)/(n+1). At 617, n/1000 = (1000-n)/(n+1).
Could be wrong, of course
Assuming numbers are generated perfectly, you will get a linear distribution (i.e. not a normal distribution).
My strategy is to wait for n numbers to be generated before calling the next number that is greater than all the existing numbers the largest number.
After n number has been generated, the chances of having the highest number already being generated is n/1000. The chances of having (any of) the remaining numbers being greater than all the exisiting numbers is (1000-n)/(n+1). At 617, n/1000 = (1000-n)/(n+1).
Could be wrong, of course