Ejemplo n.º 1
0
        /// <summary>
        /// Returns a random allele based on the constraints.
        /// </summary>
        override public Gene GetRandomAllele()
        {
            IntegerGene gene = new IntegerGene(this);

            gene.Value = genX.Utils.Rand.Next(MinValue, MaxValue + 1);
            return(gene);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a random allele based on the constraints.
 /// </summary>
 override public Gene GetRandomAllele()
 {
     IntegerGene gene = new IntegerGene(this);
     gene.Value = genX.Utils.Rand.Next( MinValue, MaxValue+1 );
     return gene;
 }