Constant-time JavaScript functions
-
Updated
Oct 2, 2022 - TypeScript
Constant-time JavaScript functions
Safe Base64 encoding/decoding in pure JavaScript.
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.
Add a description, image, and links to the constant-time topic page so that developers can more easily learn about it.
To associate your repository with the constant-time topic, visit your repo's landing page and select "manage topics."