{"uid":"cap_BODLk_4ETpdqnFOyzB6E1","slug":"halowerk-quantum-bitstream-diagnostic-d2590507","name":"Halowerk Quantum Bitstream Diagnostic","description":"Counts zeros, ones and runs, reports a normalized monobit imbalance, and compares observed runs with the IID Bernoulli expectation. It generates no random number and is not a NIST test-suite replacement, entropy estimate or certification of cryptographic randomness.","url":"https://quantum.halowerk.com/v1/random-number","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bits":{"type":"string","pattern":"^[01]+$","maxLength":100000,"minLength":32,"description":"Caller-supplied bitstream to diagnose."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZvucHC25FpWv_B1JL_nkp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a caller-supplied binary bitstream by counting zeros, ones, and runs, computing a normalized monobit imbalance, and comparing observed run statistics against IID Bernoulli expectations.","exampleAgentPrompt":"Can you run a monobit and run-length diagnostic on this bitstream and tell me if the zeros, ones, and runs look statistically balanced: 110100011010110010011101001101001100101010110110101100101001011010","exampleUseCases":[{"title":"Pre-deployment PRNG output spot-check","prompt":"I've got 512 bits of output from a custom PRNG I wrote — can you check the monobit imbalance and whether the runs match what you'd expect from a fair IID Bernoulli process? Here's the bit string: 10110010110100111001010110001101001010111001101001011010011010010110100110110010010110101100110100101101001010110100110101001101001010110010110100101010110100110101001011010011010010110100101010110100"},{"title":"Academic RNG homework validation","prompt":"I need to verify my homework answer — I computed some run statistics by hand for this 64-bit sequence: 1101001010110011001011010011010110100101011001101001011010011011. Can you count the zeros, ones, and runs, give me the monobit imbalance, and compare the runs to the IID Bernoulli expectation?"},{"title":"Hardware noise source sanity check","prompt":"We're sampling raw hardware noise and encoding it as bits. Here's a 200-bit sample: 11010011001011010101001101001100101010110110100110010101101001011010011010011001010110100110100101011010010110100110100101101001010110100110101001010110100110010110100101101001101010011010010110. Can you tell me if the zeros and ones are balanced and whether the run structure looks like genuine IID randomness?"}],"resultDescription":"Returns counts of zeros and ones, total run count broken down by type, a normalized monobit imbalance value indicating balance between 0s and 1s, and a comparison of observed run frequencies against the expected run distribution for an IID Bernoulli process. Does not generate random numbers, does not perform NIST test-suite tests, and does not certify cryptographic randomness.","failureModes":["Bitstream shorter than 32 bits returns a validation error","Bitstream longer than 100,000 characters exceeds maxLength and is rejected","Non-binary characters (anything other than 0 or 1) fail pattern validation","Empty or missing 'bits' field causes a schema error","Payment not included or insufficient USDC causes a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a fast, lightweight statistical diagnostic on a caller-supplied bitstream — specifically monobit balance and run-length comparison against IID Bernoulli expectations — without invoking a full NIST test suite. Prefer this over heavier randomness certification services when you only need a quick sanity check on bit distribution and run structure, and when you want a simple normalized imbalance score rather than a full entropy estimate or p-value suite.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:57.943Z","isFirstParty":false}