CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-unique-random

Generate random numbers that are consecutively unique

90

1.13x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "Evaluates whether the solution relies on unique-random's callable-and-iterable factories to deliver constant sequences when bounds are equal, wiring both direct calls and iteration to the same source. Confirms the implementation leans on the library's built-in equal-bounds behavior rather than recreating it.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Factory call",
      "description": "Instantiates the stream via unique-random's consecutiveUniqueRandom(minimum, maximum) or exhaustiveUniqueRandom(minimum, maximum) with identical bounds instead of hand-rolled constant logic.",
      "max_score": 35
    },
    {
      "name": "Callable usage",
      "description": "Exposes the factory's returned function directly for repeated invocations (not wrapping it with extra state) so equal bounds automatically yield the same number on each call.",
      "max_score": 25
    },
    {
      "name": "Iterator reuse",
      "description": "Surfaces the factory's built-in [Symbol.iterator] from the returned function (or uses it via for...of) rather than creating a separate iterator that could diverge from the callable output.",
      "max_score": 20
    },
    {
      "name": "Constant reliance",
      "description": "Relies on the package's documented equal-bounds behavior to keep iteration and direct calls emitting the bound value indefinitely, avoiding additional randomness, caching layers, or manual resets.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-unique-random

tile.json