Skip to content
#

random-choice

Here are 11 public repositories matching this topic...

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.

  • Updated Aug 18, 2024
  • TypeScript

Improve this page

Add a description, image, and links to the random-choice topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the random-choice topic, visit your repo's landing page and select "manage topics."

Learn more