CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-unique-random

Generate random numbers that are consecutively unique

90

1.13x
Overview
Eval results
Files

Evaluation results

100%

5%

Range Sampler

Consecutive generator samples uniformly while keeping range extremes reachable

Criteria
Without context
With context

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%

60%

Non-Repeating ID Rotator

consecutiveUniqueRandom callable iterable with no consecutive repeats

Criteria
Without context
With context

Correct factory

0%

100%

Single instance

100%

100%

Shared iterator

100%

0%

Bounds mapping

100%

100%

Degenerate range

0%

0%

98%

43%

Non-Repeating Number Stream

TypeScript signatures expose callable + iterator intersection return types

Criteria
Without context
With context

Cycle factory

16%

100%

No-repeat factory

60%

100%

Callable iterable type

90%

90%

Shared state

100%

100%

Single-value handling

20%

100%

78%

13%

Constant Bound Stream

Equal minimum and maximum yield a constant infinite sequence

Criteria
Without context
With context

Factory call

100%

100%

Callable usage

0%

80%

Iterator reuse

50%

25%

Constant reliance

100%

90%

100%

Randomized Rotation Emitter

Exhaustive generator resets its pool and avoids repeating the last value across cycles

Criteria
Without context
With context

Exhaustive factory

100%

100%

Range mapping

100%

100%

Shared state

100%

100%

No boundary repeat

100%

100%

Single value path

100%

100%

92%

12%

Shared Stream Random Sequences

Returned generators are also iterables sharing the same random stream with for-of

Criteria
Without context
With context

Factory choice

100%

100%

Shared reuse

100%

100%

Iterable draw

0%

60%

Bound reliance

100%

100%

No repeats via API

100%

100%

100%

Fair Seat Rotator

exhaustiveUniqueRandom emits full range once per cycle before any repeat

Criteria
Without context
With context

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
Evaluated
Agent
Claude Code

Table of Contents