pick

public static T pick<T>(Map<T, Double> weights)

Normalize by the largest weight so a finite authored distribution cannot overflow its sum.