random-item
Here are 3 public repositories matching this topic...
An efficient random item sampler that ensures O(1) sampling complexity, and equal selection probability for all items across cycles. Each cycle ensures unique, non-repeating item selections, with each item sampled only once per cycle. Upon cycle completion, the sampler automatically refreshes, initiating a new cycle to repeat the process.
-
Updated
Nov 10, 2024 - TypeScript
Command-line tool designed to pick a random item from a JSON file while ensuring that each item is picked only once.
-
Updated
Jul 28, 2024 - Python
Improve this page
Add a description, image, and links to the random-item topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the random-item topic, visit your repo's landing page and select "manage topics."