public static void AssignRandomScopeProperties(this TECScope scope, TECCatalogs catalogs, Random rand)
        {
            scope.AssignRandomTaggedProperties(catalogs, rand);
            TECAssociatedCost randTECCost  = catalogs.RandomCost(rand, CostType.TEC);
            TECAssociatedCost randElecCost = catalogs.RandomCost(rand, CostType.Electrical);

            if (randTECCost != null)
            {
                scope.AssociatedCosts.Add(randTECCost);
            }
            if (randElecCost != null)
            {
                scope.AssociatedCosts.Add(randElecCost);
            }
        }
        public static void AssignRandomElectricalMaterialProperties(this TECElectricalMaterial mat, TECCatalogs catalogs, Random rand)
        {
            mat.AssignRandomCostProperties(catalogs, rand);
            TECAssociatedCost randTECCost  = catalogs.RandomCost(rand, CostType.TEC);
            TECAssociatedCost randElecCost = catalogs.RandomCost(rand, CostType.Electrical);

            if (randTECCost != null)
            {
                mat.RatedCosts.Add(randTECCost);
            }
            if (randElecCost != null)
            {
                mat.RatedCosts.Add(randElecCost);
            }
        }