-
- Downloads
replace weighted random selection algorithm in order to avoid duplicate random...
replace weighted random selection algorithm in order to avoid duplicate random picks from the same source list, add a test to cover that all elements of the source list end up in the randomized list
Showing
- go.mod 2 additions, 2 deletionsgo.mod
- go.sum 4 additions, 4 deletionsgo.sum
- pkg/api/endpoints.go 24 additions, 14 deletionspkg/api/endpoints.go
- pkg/api/endpoints_test.go 162 additions, 16 deletionspkg/api/endpoints_test.go
- pkg/weightedrand/weightedrand.go 82 additions, 0 deletionspkg/weightedrand/weightedrand.go
- pkg/weightedrand/weightedrand_test.go 131 additions, 0 deletionspkg/weightedrand/weightedrand_test.go
Loading
Please register or sign in to comment