std.random: add weightedIndex function

`weightedIndex` picks from a selection of weighted indices.
5bb8c03697Justin Whear committed on 8/28/2022, 11:19:51 AM· committed by GitHubparent0f27836
2 files changedLine totals unavailable