mroth / weightedrand

:balance_scale: Fast weighted random selection for Go
MIT License
388 stars 50 forks source link

Feature: Utilize math/rand/v2 #37

Open robinjoseph08 opened 2 weeks ago

robinjoseph08 commented 2 weeks ago

Since Go v1.22, they added a new version of the rand package (more details in this post) that should be faster if nothing else. It would be nice to see how things compare using that.

mroth commented 2 weeks ago

@robinjoseph08 this is implemented in #36 for a v3 release, I just need some feedback/iteration on the API changes. Please take a look and let me know what you think!