Skip to main content

seededRandom

@retinue/monorepo


@retinue/monorepo / backend/src / seededRandom

Function: seededRandom()

seededRandom(seed): () => number

Defined in: backend/src/loadtest/scenario.ts:83

Deterministic pseudo-randomness.

A seeded generator, so a run that found a failure can be replayed exactly. Math.random() would make the interesting runs — the ones that broke — unrepeatable, which is the opposite of what a load test is for.

Parameters​

seed​

number

Returns​

() => number