sample

fun sample(weighted: List<Pair<Solution, Double>>, n: Int, rnStream: RNStreamIfc): List<Solution>(source)

Samples n individuals from the (item, probability) pairs in weighted using SUS driven by rnStream. Probabilities need not sum to one; they are normalized internally.