How to generate a series of numbers based on an average

average

I'm not too good with math so I'm struggling with this. Say I am given an average yearly temperature and I want to generate twelve random numbers to constitute the average for each month of the year within a certain limit so that I'm not getting temperatures that are unrealistically high. In other words, generating a series of twelve numbers from an already given average, and those twelve numbers equal the average. Does that make sense? I hope it does. Like I said, I'm not too good with math. Thanks for any feedback!

Best Answer

Choose a tight interval of reasonable average temperatures for each month at your location. For example, in Boston for January that might be $(10 ,30)$ in degrees Fahrenheit.

Choose a random value $V$ in each of those $12$ intervals.

Find their average $A$.

Calculate the difference $d = A-B$ between $A$ and the average $B$ you want.

Subtract $d$ from each month's $V$.