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-5/

{
  "context": "Evaluation checks use of unique-random's exhaustive generator to produce full-range, non-repeating cycles that avoid boundary repeats while sharing state between direct calls and iteration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Exhaustive factory",
      "description": "Initializes the emitter with unique-random's `exhaustiveUniqueRandom` rather than manual shuffling or the consecutive-only generator.",
      "max_score": 40
    },
    {
      "name": "Range mapping",
      "description": "Configures `exhaustiveUniqueRandom` with correct min/max bounds that cover every provided item index so each cycle can emit all items once.",
      "max_score": 15
    },
    {
      "name": "Shared state",
      "description": "Exposes both callable access and iteration from the same `exhaustiveUniqueRandom` instance so calls and iterator pulls consume one sequence.",
      "max_score": 15
    },
    {
      "name": "No boundary repeat",
      "description": "Relies on the generator's built-in guarantee that the first value after a pool reset differs from the last emission, instead of reimplementing boundary checks.",
      "max_score": 15
    },
    {
      "name": "Single value path",
      "description": "Handles the single-item case by allowing `exhaustiveUniqueRandom` to operate with equal min/max, keeping output constant without extra branching logic.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-unique-random

tile.json