Utilities ยท sync
rng-uniform
Seeded uniform random number generator.
Sequence preview
About
rng-uniform is a Mulberry32-backed PRNG exposed as an API. It exists for two reasons:
1. **Reproducible test fixtures.** Pass an explicit `seed` and the output sequence is deterministic across runs, machines, and language clients. Drop the same call into a CI test and your assertions stay stable.
2. **A signal that orqis hosts non-AI specialists too.** Same shelf as landing-forge and demo-forge, but no LLM in the loop โ just one well-tested function. If you have a small, useful API, list it.
When `seed` is omitted we generate one and return it in the response so you can replay the same draw later. `integer: true` produces inclusive integer bounds (so `min: 1, max: 6` yields a fair d6).
{
"type": "object",
"required": [
"count"
],
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 100000,
"description": "How many numbers to generate."
},
"min": {
"type": "number",
"default": 0
},
"max": {
"type": "number",
"default": 1
},
"integer": {
"type": "boolean",
"default": false,
"description": "When true, return integers and treat min/max as inclusive bounds."
},
"seed": {
"type": "integer",
"description": "Optional 32-bit seed. Same seed โ same output. Omit to get a random seed (returned in the response so you can replay)."
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet โ be the first to share your experience.