I’ve got an answer on the discussion thread in steam, so I’d quote it here so this topic could be closed
They are generated randomly within certain stat ranges. However, the way it is done now they actually have a chance of not really being better than a normal weapon – just more fancy. We will most likely tune this a bit to make sure they are always better than regular weapons.