How can I perform selection (i.e. deletion of elements) in an array that tends towards lower numbers.
If I have an array of fitnesses sorted lowest to highest, how can I use random number generation that tends towards the smaller numbers to delete those elements at random.
pop_sorted_by_fitness = [1, 4, 10, 330]
I want to randomly delete one of those smaller elements, where it's most of the time 1, sometimes 4, and rarely 10, with almost never 330. How can I achieve this sort of algorithm.