Skip to main content

Module random

Module random 

Source
Expand description

Tiny deterministic random task generator for property tests across the workspace (no external RNG dependency).

A seed always produces the same task, so a failing property names the seed that reproduces it.

Structs§

RandomTaskParams
The shape of the tasks random_task generates.
Rng
xorshift64* — good enough for test-case generation.

Functions§

random_task
A random task of shape p, the same for every call with the same seed. The task passes Task::validate.