title: Roulette Wheel selection procedure
body: <p>is it possible to evaluate each individual in the population using the fitness value without finding the probability as the following pseudo code </p>
  
  <pre><code>For all members of population
      sum += fitness ( member)
  End for 
  Loop until new population is full 
        Do this twice 
              Number = Random between 0 and sum
              Currentfitness = 0.0
              For each member in population
                 Currentfitness += fitness (member)
                 if Number &gt; Currentfitness then select member
              End for 
        End
  Create offspring 
  End loop
  </code></pre>
  
  <p>and what the following part of the code do ? </p>
  
  <pre><code>Do this twice
  </code></pre>
  
  <p>I really confuse how the Roulette Wheel selects pair of parents. can any help ? thanks in advance </p>