Example #1
0
        private double CreateAttributeValue(Parameter attribute, double parentAttributeValue, uint attributeDeviationPercent)
        {
            Range attributeRange = RangeFactory.CreateRangeWithRestriction(parentAttributeValue, attributeDeviationPercent, attribute.MinValue, attribute.MaxValue);

            return(attributeRange.MinValue + randomizer.NextDouble() * attributeRange.Length);
        }