update comments in weightedRandomSelector.js