{"uid":"cap_EGZ1AeDYdEXPqSaU67e-2","slug":"rng-sociologic-ai-83947bbb","name":"rng.sociologic.ai Coin Flip","description":"Flip one or more coins (heads or tails)","url":"https://rng.sociologic.ai/coin","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"count":{"type":"integer","default":1,"maximum":100,"minimum":1,"description":"Number of flips (1-100)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"count":5}}},"response":{"count":5,"flips":["tails","tails","heads","tails","tails"],"entropy":{"hex":["d3ab5b7e","fa510962","67f29bee","87e9a3c6","9f3a7c21"],"raw":[3551222654,4199614818,1743952878,2280235974,2671410209]}}},"exampleRequest":{"count":5},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mLQKxWCCYizSWeT1Q2uka","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Flips one or more coins and returns heads or tails results using cryptographically secure randomness","exampleAgentPrompt":"Flip 5 coins for me and tell me which ones landed heads and which landed tails.","exampleUseCases":[{"title":"Randomize team selection for games","prompt":"We need to pick teams for our office tournament. Can you flip a coin 12 times to randomly assign our 12 people into two groups, and tell me who goes in each team?"},{"title":"Simulate probability experiment results","prompt":"I'm running a statistics class and need to show students what 100 fair coin flips look like. Can you flip a coin 100 times and give me the breakdown of how many heads versus tails we got?"},{"title":"Break ties in decision-making","prompt":"Our group can't decide between two options for our project. Flip a coin twice and if you get two heads in a row, we go with option A, otherwise option B. Let me know what the flips say."}],"resultDescription":"Returns an array of coin flip outcomes (heads or tails) for the requested number of flips, generated using cryptographically secure randomness. The response includes one result per flip for up to 100 flips.","failureModes":["count below 1 or above 100 returns a validation error","non-integer count value rejected","payment failure returns 402 status","service unavailable returns 503"],"whenToPreferThis":"Use this endpoint when you need cryptographically secure coin flip results (heads/tails binary outcomes) for simulations, games, decision-making, or probabilistic experiments. Prefer this over a dice roll endpoint when you specifically need binary outcomes. The count parameter lets you batch up to 100 flips in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:39.857Z","isFirstParty":false}