Generate random numbers that are consecutively unique
90
Consecutive generator samples uniformly while keeping range extremes reachable
Factory choice
80%
100%
Inclusive bounds
100%
100%
Shared iterable
100%
100%
No custom rerolls
100%
100%
Single-value range
100%
100%
Reachability preserved
100%
100%
consecutiveUniqueRandom callable iterable with no consecutive repeats
Correct factory
0%
100%
Single instance
100%
100%
Shared iterator
100%
0%
Bounds mapping
100%
100%
Degenerate range
0%
0%
TypeScript signatures expose callable + iterator intersection return types
Cycle factory
16%
100%
No-repeat factory
60%
100%
Callable iterable type
90%
90%
Shared state
100%
100%
Single-value handling
20%
100%
Equal minimum and maximum yield a constant infinite sequence
Factory call
100%
100%
Callable usage
0%
80%
Iterator reuse
50%
25%
Constant reliance
100%
90%
Exhaustive generator resets its pool and avoids repeating the last value across cycles
Exhaustive factory
100%
100%
Range mapping
100%
100%
Shared state
100%
100%
No boundary repeat
100%
100%
Single value path
100%
100%
Returned generators are also iterables sharing the same random stream with for-of
Factory choice
100%
100%
Shared reuse
100%
100%
Iterable draw
0%
60%
Bound reliance
100%
100%
No repeats via API
100%
100%
exhaustiveUniqueRandom emits full range once per cycle before any repeat
Exhaustive factory
100%
100%
Cycle coverage
100%
100%
Boundary shift
100%
100%
Callable iterable
100%
100%
Single-value range
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-unique-random