a key from weights, drawn in proportion to the value it maps to, or null if none has any
weights
null
a key from
weights, drawn in proportion to the value it maps to, ornullif none has any