Dynamic_Games.PAES.init C# (CSharp) Method

init() public method

public init ( ) : void
return void
        void init()
        {
            int i;
            int val;

            c = new Solution();
            m = new Solution();
            arc = new List<Solution>(50);

            // initialise c with a uniform distribution of values from 0 to alleles-1
            for (i = 0; i < genes; i++)
            {
                val = (int)(alleles * (r.Next() / (Int32.MaxValue + 1.0)));
                c.chrom[i] = val;
            }
        }