a key from weights, drawn in proportion to the value it maps to, or null if none has any; draws from source when given
weights
null
source
Optional
a key from
weights, drawn in proportion to the value it maps to, ornullif none has any; draws fromsourcewhen given