weightedrandom
A Go library for efficient weighted random picking (by minaguib)
fastrand
Fast and scalable pseudorandom generator for Go (by valyala)
Our great sponsors
weightedrandom | fastrand | |
---|---|---|
1 | 1 | |
9 | 193 | |
- | - | |
0.0 | 1.8 | |
about 2 years ago | over 2 years ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
weightedrandom
Posts with mentions or reviews of weightedrandom.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-20.
-
Fastest way to pick uniformly from a slice from multiple goroutines
If you ever need random picking with weights, consider the weightedrandom package I authored.
fastrand
Posts with mentions or reviews of fastrand.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-20.
-
Fastest way to pick uniformly from a slice from multiple goroutines
Found that using github.com/valyala/fastrand using
What are some alternatives?
When comparing weightedrandom and fastrand you can also consider the following projects:
faker - Random fake data and struct generator for Go.
Builder - Next-Gen Builder
NIST-Statistical-Test-Suite - The code from NIST SP-800-22 for testing random-number generators, along with docs for reference