On Sat, 8 Dec 2001, Mark Mielke wrote:
> Unfortunately, the problem still remains: (Range is -1000..999)
> 
>     -1000, -800, -600, -400, -200, 0, 200, 400, 600, 800
>        5     4     3     2     1   0   1    2    3    4
> 
> This time, however, after Trent's correction, the issue is somewhat
> reduced.  Instead of the extra location being 1 of 4 positions, it is
> 1 of 10 positions.  The client may draw the ship up to 5 pixels left
> or up from the actual location, but only 4 pixels down or right from
> the actual location.

You are still wrong here.  Each of those 10 positions isn't equally likely. 
If the random number is 0-199, you get 0 pixels off.  If it's 200-399 you get
1 pixel right.  The only way to get 5 pixels left, is if the random number is
exactly -1000.  Four pixels to the left is 200 times more common than 5 pixels
to the left.  You are only going to get the 5 pixel case off 0.05% of the
time.

You also aren't taking into account that the initial position of the ship
isn't going to be 0.  You might have it be 1 or 199, in which case the
rounding comes out differently.