more randomness improvements to chargenerator.lua