An open API service providing repository metadata for many open source software ecosystems.

GitHub topics: weighted-random-choice

retraigo/fortuna

A TypeScript module for random events and gacha (random sampling with weights).

Language: TypeScript - Size: 630 KB - Last synced at: 13 days ago - Pushed at: 14 days ago - Stars: 20 - Forks: 0

ori88c/non-replacement-weighted-random-item-sampler

A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight, and every item is sampled exactly once (without repetition or replacement). The sampling method utilizes a binary-search optimization, making it suitable for performance-demanding applications where the set of items is large.

Language: TypeScript - Size: 72.3 KB - Last synced at: 13 days ago - Pushed at: 8 months ago - Stars: 0 - Forks: 0

kontoulis/go-weighted-random-choice

Golang Weighted Random Choice

Language: Go - Size: 5.86 KB - Last synced at: almost 2 years ago - Pushed at: over 5 years ago - Stars: 5 - Forks: 2