I understand that the `* weighted_index.length` is to get a random number within the range of indices we have, but a comment would be good