SocioLogic Verified
x402 Enabled

Cryptographically Secure
Random Numbers

High-quality randomness with verifiable entropy. Pay per use via x402 micropayments—no API keys, no subscriptions.

CSPRNG
From $0.01/call
Edge deployed
rng.sociologic.ai
// x402 payment handled automatically
const response = await fetch(
  "https://rng.sociologic.ai/random/int?min=1&max=100",
  {
    headers: {
      "X-402-Payment": paymentToken
    }
  }
);

const data = await response.json();
// {
//   "value": 42,
//   "min": 1,
//   "max": 100,
//   "timestamp": "2026-01-20T...",
//   "entropy": {
//     "raw": [2847593812],
//     "hex": "a9c3f5d4"
//   }
// }

Why SocioLogic RNG?

Built for AI agents that need trustworthy randomness without the overhead of managing API keys.

CSPRNG with Rejection Sampling

Uses crypto.getRandomValues() with unbiased rejection sampling for true cryptographic security.

Verifiable Entropy

Every paid request returns raw entropy data (Uint32 + hex) so you can verify the randomness source.

x402 Micropayments

Pay only for what you use. USDC on Base mainnet via Coinbase Developer Platform.

Sub-100ms Latency

Edge-deployed on Cloudflare Workers for consistent low-latency responses worldwide.

API Endpoints

Simple REST API with transparent per-call pricing.

Standard Tier

$0.01/call
GET
/random

Random float between 0 and 1

GET
/random/int?min=0&max=100

Integer within range (max 1M)

GET
/uuid

UUID v4 generation

Extended Tier

$0.02/call
GET
/dice?sides=6

Die roll (2-1000 sides)

GET
/coin

Coin flip (heads/tails)

POST
/shuffle

Fisher-Yates shuffle (max 1000 items)

POST
/weighted

Weighted random selection

Free endpoints available: GET / (API info) and GET /health (status)

Use Cases

When pseudo-random isn't good enough.

AI Agent Decision Making

When your agent needs to make random choices—A/B testing, exploration vs exploitation, sampling.

Fair Selection & Ordering

Shuffle candidates, randomize survey questions, or select winners without bias.

Simulation & Modeling

Monte Carlo simulations, probabilistic forecasting, and stochastic processes.

Weighted Sampling

Select from options based on probability weights—persona selection, content variation.

x402 Protocol

Pay-Per-Use via HTTP 402

The x402 protocol enables seamless micropayments for API calls. When you call a paid endpoint without payment, you receive a 402 response with payment instructions. Complete the USDC payment on Base, include the receipt, and get your response.

No API keys to manage. No monthly subscriptions. Just direct payment for value received.

1
Request endpoint
GET /random/int?min=1&max=100
2
Receive 402 Payment Required
Amount: 0.01 USDC on Base
3
Send payment + retry
Include X-402-Payment header
4
Receive random number
With verifiable entropy

Ready to Add True Randomness?

Integrate SocioLogic RNG into your agent or application. Available now through Signal Relay or direct API access.