And there is the error ;-)
We are not back in the 2.0 days anymore. Did you remember they finally fixed the trade bug? I mean for how long did we have to struggle with this?
There is already a procedure for randomising a tech part's content. There is already a procedure for "randomising" Slots and Weapon stats upon constructing.
I cannot believe that it would be so hard to relink the "randomize(tech_part)" procedure to another event (e.g. finished_ress)
Of course they will have to do some serious coding to do but see what alduin and zoltan did already...