The missing JavaScript randomness library.
-
Updated
Aug 11, 2023 - TypeScript
The missing JavaScript randomness library.
🔀 Choose a random value from a fixed list of choices. Treat some values as more likely than others.
A weighted random item sampler (selector), where the probability of selecting an item is proportional to its weight. The sampling method utilizes a binary search optimization, making it suitable for performance-demanding applications where the set of items is large and the sampling frequency is high.
Add a description, image, and links to the weighted-random topic page so that developers can more easily learn about it.
To associate your repository with the weighted-random topic, visit your repo's landing page and select "manage topics."