weighted

fun <T> Random.weighted(weights: Map<T, Double>): T
fun <T> Random.weighted(weights: RandomWeights<T>): T