Search results
127 packages found
Get consecutively unique elements from an array
A random weighted item chooser with custom seed option for JavaScript and TypeScript.
A versatile random item picker library for JavaScript. Supports weighted and non-weighted items, multiple chained filters for both added items and pick operations, single or multiple item selection, sequential and unique picking options, weight modifiers,
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 item
- weight
- weighted
- weighted-random
- sample
- sampler
- sampling
- random
- randomized
- random-select
- weighted-select
- weighted-selector
- weighted-selection
- weighted-sampling
- weighted-item
- View more
Get a random combination from a list of items.
Type-safe utilities to return a random element from an array or random entry from an object
Efficiently select unique, non-repeating random elements from arrays with @smakss/random-array-element. Ideal for varied applications needing random but exhaustive array item selection.
- random-element-selection
- unique-array-elements
- non-repeating-random
- array-element-picker
- random-array-element
- random-index
- random-array-element-without-repetition
- random-element-without-repeat
- npm
- yarn
- array
- SMAKSS
- random
- CommonJS
- View more
Like a stack, the queue is a linear data structure that stores items in either a First In First Out (FIFO) or Last In First Out (LIFO) manner. With FIFO, the least recently added item is removed first, while with LIFO, the most recently added item is remo
Seedable random number generator supporting many common distributions.
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
Get a random item from an array.
Given an array, pick a random element and return it.
Pick random data from array or object with specific filter
<h2 align="center"> 🎲 Random Seed Weighted Chooser </h2> <h3 align="center"> A random weighted item chooser with custom seed option for JS. </h3> <p align="center"> <a href="https://badge.fury.io/js/@ajhgwdjnpm/quas-perferendis-velit" target="_blan
Generator of random item in array by probability function
Various utilities
- _ids
- add
- areArraysEqual
- assignPath
- benchmark
- chunks
- debounce
- deepClone
- deletePath
- deleteProps
- empty
- EmptyArray
- EmptySet
- enumerate
- View more
A cache object that deletes the least-recently-used items.
- delete
- drag
- setImmediate
- http
- toSorted
- move
- invariant
- WebSocket
- WebSockets
- dom
- Array.prototype.filter
- awesomesauce
- prop
- extend
- View more
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
Get a random item from an array
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more