### unbiased iterative function

Posted:

**Wed Sep 21, 2011 11:22 pm UTC**I have a list of 50 random numbers generated from an even distribution.

I want to generate another from the same distribution, replace the oldest number with it, and then repeat.

How do I keep the range of values from converging to 0?

My current method is to find the average distance from the average value and pick a random number from double that range but that ends up at zero.

I want to generate another from the same distribution, replace the oldest number with it, and then repeat.

How do I keep the range of values from converging to 0?

My current method is to find the average distance from the average value and pick a random number from double that range but that ends up at zero.