MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / between

Function between

packages/react/src/components/artifact-preview.tsx:87–88  ·  view source on GitHub ↗
(next: () => number, min: number, max: number)

Source from the content-addressed store, hash-verified

85
86/** Pick a value in `[min, max)` from the sequence, rounded to whole units. */
87const between = (next: () => number, min: number, max: number): number =>
88 Math.round(min + next() * (max - min));
89
90// The frame the schematics are drawn in. 16:10, matching the card's preview box.
91const WIDTH = 320;

Callers 5

ChromeFunction · 0.85
BarsFigureFunction · 0.85
RowsFigureFunction · 0.85
TilesFigureFunction · 0.85
SplitFigureFunction · 0.85

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected