Skip to content
Fourohtwo

Randomness for agents

api.vextorium.com/v1/random

Randomness for agents: flip coins, roll dice, draw numbers in a range, pick from a list or shuffle it. Cryptographically secure by default; with verifiable=true it is derived from the latest public NIST Randomness Beacon pulse and your seed, so anyone can verify the result.

BaseAnswering
POSThttps://api.vextorium.com/v1/random

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.vextorium.com/v1/random", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"type":"dice","amount":2}),
});
console.log(await res.json());

Example input

{
  "type": "dice",
  "amount": 2
}

Price changes

  • Nov 25, 20260.0023 → 0.003
  • Nov 25, 20260.003 → 0.0023