Your sum could be zero when you have both positive and negative.5 roulette system FRANK ONLINE GAMBLING When you pick a chromosome, you should determine the random number only once and then accumulate the offset, so that you consider all. Here is some Java code that implements roulette wheel selection. Assume . local c = 0 for i = 1,n do c = c + p[i] if r c then return i end end. With roulette selection you select members of the population based on a roullete wheel model. Make a pie chart, where the area of a member's.