So I have to make a mating pool and with it a sort of raffle for the fittest strings. The problem I'm facing is that I am stuck how to go about making a raffle and choosing the fittest of the strings. The ultimate goal of the function is to build an array with the indices of the strings that are the best match based on the fitness score. The fitness score is inside of the populationFitness array.Each fitness score is multiplied by a mating factor and that gives it a certain amount of tickets. Then based on how many tickets each index has, the "fitter" ticket indexes get put into the mating pool array.I just don't know how to go about programming a raffle. Any help would be much appreciated.