Oct-05-2020, 03:36 PM
The way I would approach it -
The first two rooms are at the extremes.
Divide the difference by the number of remaining rooms needed + 1 (which is the number of needed intervals).
Choose rooms closest to those points.
Using your example -
First 2 are 3 and 28.
Difference between = 25. 25/3 = 8.33
3+8.33 = 11.33
3+8.33+8.33 = 19.66
Closest to 11.33 is 12
Closest to 19.66 is 21
Alternative is a repetitive process - do as above to get the 12, then get the distance 12 to 28 (16), divide now by 2 (8), add (12+8 = 20), get closest room (21).
The first two rooms are at the extremes.
Divide the difference by the number of remaining rooms needed + 1 (which is the number of needed intervals).
Choose rooms closest to those points.
Using your example -
First 2 are 3 and 28.
Difference between = 25. 25/3 = 8.33
3+8.33 = 11.33
3+8.33+8.33 = 19.66
Closest to 11.33 is 12
Closest to 19.66 is 21
Alternative is a repetitive process - do as above to get the 12, then get the distance 12 to 28 (16), divide now by 2 (8), add (12+8 = 20), get closest room (21).