Who's asked you not to publish it?
If Traveller UWPs and definitions are the issue then just don't use Traveller-specific UWPs and codes. Nobody can stop you publishing a world generator that creates a world whose radius may be described as "6,000 miles". has a "thin, breathable" atmosphere, is "60% covered by liquid water", has a population of "500,000 people" run by a "representative democracy" that "bans all handguns or heavier weapons" and has "2000-2100 technology".
Actually, now I check it, I don't see why you would even need to do that. The UWPs and their definitions are listed in the Traveller SRD as
Open Content (and indeed they were open content when T20 was published too). That means you don't need a license to use them or their definitions. There's also nothing in the OGL legal blurb that prevents you from writing software that uses OGL material (as far as I can see, the only thing you'd have to do is include the OGL text itself somewhere in the product).
The Traveller Logo License specifically doesn't allow publisher to produce software with the Traveller Logo on it, but I can see no reason why a generic, purely OGL-compatible, non-commercial world generator without a Traveller logo would be forbidden by that. And you're also not explictly describing the process of making the UWPs (so nobody can say you're "reproducing the rules" if that was a possible argument) - you're just letting the user press a button that generates them.
The FFE Fair Use policy says this:
We have a liberal Fair Use Policy. If your activity is non-commercial, you can make copies to support playing the game, you can scan copies for your computer, you can write short programs and spreadsheets which automate processes within the game. You can make copies of pages as handouts for players. You can make web pages in support of Traveller.
The key word is non-commercial. If you are selling what you copy or reproduce, then you violate Fair Use.
Note however that this section doesn't say anything about whether or not you can
distribute the material you copy or create... but either way I think the Fair Use Policy doesn't even apply here because the material that you are using has been explicitly declared to be Open Content. That trumps everything else, as far as I am aware.
Note that I am not a lawyer, however, so don't take what I say as gospel (it's possible that I may have missed something!) - but a common sense reading of all the available material implies that there isn't a legal reason to forbid you from releasing a generic, purely-OGL, non-commercial program that is used to generate UWPs.
You can swot up on the relevant licenses yourself at: http://www.mongoosepublishing.com/pdf/travdevpack.zip