I think there are a variety of random treasure generators out there already.
However, I could add a feature enabling a user to enter a certain gp value, and it would generate magic items up to that total value (or thereabouts), with restrictions on the maximum value of any particular magic item.