Skip to content
Fourohtwo

Cryptographically secure random numbers

landingen24h.com/api/x402/util/random

Cryptographically secure random numbers: 1-100 unbiased integers in [min, max] plus up to 256 random bytes as hex. Send {} or {min, max, count, bytes}. Defaults: one integer 0-100 and 16 bytes.

PolygonDown
POSThttps://landingen24h.com/api/x402/util/random

Uptime0.0% of 3 checks in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://landingen24h.com/api/x402/util/random", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max":6,"min":1,"bytes":8,"count":3}),
});
console.log(await res.json());

Example input

{
  "max": 6,
  "min": 1,
  "bytes": 8,
  "count": 3
}

More from Landing en 24hProvider status