#
random-item
Here are 3 public repositories matching this topic...
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
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.
random constant-time sampling sampler shuffle cycles random-shuffle random-sample rounds random-select random-permutations random-selection random-samples no-repetitions random-item random-selector efficient-sampling non-replacement random-element
-
Updated
Nov 10, 2024 - TypeScript
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."