New Issue: Random module: add optional argument to 'sample()' specifying array of probabilities to use instead of equal probability for all options

24652, "lydia-duncan", "Random module: add optional argument to 'sample()' specifying array of probabilities to use instead of equal probability for all options", "2024-03-19T22:35:01Z"

This is motivated by updating HPO to use Chapel 2.0. HPO was relying on passing in an array of fitnesses when calling the now deprecated choice() method to select the next population instance to try, but it seems there is no current replacement for that functionality.

I imagine this will be generally useful in other population simulations