randarium
Numbers

Random Radix Generator

Create reproducible random numbers represented in various bases from 2 to 36. Choose binary, octal, hexadecimal, or any custom base with optional grouping for readability.

Also known as: base converter · number base · radix notation

seeded

Output

No output yet — set your options and hit .
About this tool, tips & examples

What it does

The Random Radix Generator produces random numbers written in any base from 2 to 36: binary, octal, hexadecimal, or a custom radix, with 1 to 256 digits and optional grouping every four digits for readability. Seeded, up to 1,000 values per run — number-representation fixtures on demand.

Common use cases

  • Base-conversion exercises — worksheets of binary and hex values for CS students, with the seed as answer-key insurance.
  • Parser and converter testingparseInt(x, radix)-style code exercised across bases, digit lengths, and grouped formats.
  • Encoding examples — realistic values for documentation about binary protocols, permissions (octal!), and color codes (hex).
  • Bit-pattern fixtures — long binary strings as mask and flag test data.

Settings

  • Base — binary (2), octal (8), hex (16), or a custom base up to 36 (where digits run 0–9 then a–z).
  • Digits — 1 to 256 digits per value.
  • Grouped — insert a space every 4 digits (1010 0110) for readability.
  • How many — 1 to 1,000 values, exportable as text, CSV, or JSON.
  • Seed — identical seed + settings = identical values.

Privacy note

Values are generated locally in your browser; nothing is uploaded. Seeded and reproducible — not a source of secrets (a “random-looking” hex string from here is not a key; see the Secure Token Generator).

FAQ

Why does base 36 stop at z? Digits are 0–9 plus a–z: ten numerals and twenty-six letters gives 36 symbols — the largest alphabet-friendly base, used in the wild for compact IDs.

Are grouped values still parseable? Strip the spaces first — which is exactly the normalization step worth testing. Generate grouped and plain sets from the same seed for matched pairs.

How do I make a conversion worksheet? Generate binary values, have students convert to decimal or hex, then regenerate the same seed in the target base to check — the seed guarantees the answer key matches.