✳ RandomKit

REST API ドキュメント

REST API ドキュメント · 設定 · 結果 · RandomKit

POST /api/v1/generate

Send a JSON body with Content-Type: application/json. This example generates integers.

ParameterDescription
toolGenerator name. Use integers for whole numbers.
input.min / input.maxInclusive bounds from −10¹² to 10¹². Defaults: 1 and 100.
input.count1–10,000. Default: 1.
input.uniqueSet true to sample without replacement. Default: false.
input.sortSet true for ascending order. Default: generation order.
localeOptional. With a locale, the response includes formatted. en, ru, zh-TW, zh-CN, hi, ja, ko, es

curl

curl -X POST "https://randomkit.tech/api/v1/generate" -H "Content-Type: application/json" -d '{"tool":"integers","locale":"ja","input":{"min":1,"max":100,"count":5,"unique":true,"sort":true}}'

fetch

const response = await fetch('/api/v1/generate', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"tool":"integers","locale":"ja","input":{"min":1,"max":100,"count":5,"unique":true,"sort":true}})
})
const data = await response.json()
if (!response.ok) throw new Error(data.error)
console.log(data.values, data.formatted)
console.log(response.headers.get('RateLimit-Remaining'))

Response and quota

Successful responses contain tool and values. With locale, they also include locale, label and formatted. Formatted integers have number and text fields.

400: invalid request. 429: quota exhausted, with Retry-After in seconds. 503: quota service unavailable. Requests rejected with 400 also count toward the quota.

Verifiable draws and Seed

Use the browser tools for Seed and drand. On the draw page you can select a winner and download a JSON proof. Open verifiable draw

API Playground

ツール

CORE
Web CryptoSeeddrand
乱数生成Open tool
CORE
Web CryptoSeed
ランダム数列Open tool
SOCIAL
Web CryptoSeed
リストシャッフルOpen tool
GAMES
Web CryptoSeed
サイコロOpen tool
GAMES
Web CryptoSeed
コイントスOpen tool
GAMES
Web CryptoSeed
カードシャッフルOpen tool
GAMES
Web CryptoSeed
ロト番号選択Open tool
SECURITY
Web Crypto
パスワード生成Open tool
SECURITY
Web CryptoSeed
ランダム文字列Open tool
CORE
Web CryptoSeed
正規分布乱数Open tool
DATA
Web CryptoSeed
ランダムカラーOpen tool
DATA
Web CryptoSeed
ランダム座標Open tool
SECURITY
Web CryptoSeed
ランダムバイトOpen tool
DATA
Web CryptoSeed
ランダム日時Open tool
CORE
Web CryptoSeed
整数生成の詳細設定Open tool
WIDGETS
Web CryptoSeed
整数ウィジェットOpen tool
WIDGETS
drand
抽選ウィジェットOpen tool
SOCIAL
drand
チャリティー抽選Open tool
SOCIAL
Web CryptoSeed
名前ルーレットOpen tool
SOCIAL
Web CryptoSeed
名前の抽選Open tool
SOCIAL
Web CryptoSeed
ランダムグループ分けOpen tool
CORE
Web CryptoSeed
番号の抽選Open tool
DATA
Web CryptoSeed
ランダム文字Open tool
DATA
Web CryptoSeed
ランダム単語Open tool
DATA
Web CryptoSeed
ランダム誕生日Open tool
DATA
Web Crypto
画像の抽選Open tool
SOCIAL
Web CryptoSeed
コメント抽選Open tool
CORE
Seed
再現可能な標本抽出Open tool
SOCIAL
Web CryptoSeed
イベントルーレットOpen tool
DATA
Web CryptoSeed
テストデータOpen tool
SECURITY
Web CryptoSeed
ネットワーク識別子Open tool
DATA
Web CryptoSeed
ランダム絵文字Open tool
SOCIAL
Web CryptoSeed
ランダムチーム分けOpen tool
CORE
Web CryptoSeed
小数乱数Open tool
SOCIAL
Web CryptoSeed
ランダム選択Open tool
SOCIAL
drand
検証可能な抽選Open tool