an index into weights drawn in proportion to its weight, or null if nothing has any; draws from source when given
weights
null
source
Optional
an index into
weightsdrawn in proportion to its weight, ornullif nothing has any; draws fromsourcewhen given