I basically want to generate a set of $x$ numbers given $x$, a minimum, maximum and average. The set of numbers must conform, yielding the given average, with the smallest number being the given minimum, and the largest being the given maximum.
Also, a second set, but different from the first would conform to all requirements of the first, except the minimum could be equal to or greater than the given minimum, and the maximum could be equal to or less than the given maximum.
I would prefer to use some freely, easy, available tool or formula to generate these rather than write a complicated program, if possible.