🔍

首页Home › 随机生成Random Generators

01 生成随机二进制数Generate Random Binary Numbers

生成指定位数的随机二进制串。本地处理。可设置「个数」、「位数」、「种子(留空 = 安全随机)」、「加 0b 前缀」。Generate random binary strings of a chosen bit length. Processed locally. Settings: How many, Bits, Seed (blank = secure random), Prefix 0b.

使用说明与常见问题How-to & FAQ

「生成随机二进制数」是什么?What is the Generate Random Binary Numbers tool?

生成指定位数的随机二进制串。本地处理。可设置「个数」、「位数」、「种子(留空 = 安全随机)」、「加 0b 前缀」。Generate random binary strings of a chosen bit length. Processed locally. Settings: How many, Bits, Seed (blank = secure random), Prefix 0b.

如何使用「生成随机二进制数」?How do I use the Generate Random Binary Numbers tool?

在「生成随机二进制数」中,按需设置「个数」、「位数」、「种子(留空 = 安全随机)」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Random Binary Numbers: Adjust "How many", "Bits", "Seed (blank = secure random)"; the result appears below instantly — click "Copy result" to copy it.

结果分布均匀吗?Is the output uniform?

是的,每一位都独立地以相同概率取 0 或 1,所以所有指定位数的二进制串出现的概率相同,包括以 0 开头的串。填写种子可以复现同一组结果。Yes. Each bit is chosen independently with equal chance of 0 or 1, so every string of the chosen length is equally likely, including ones starting with 0. A seed reproduces the same set.

结果是真随机的吗?「种子」有什么用?Is the output truly random? What does Seed do?

「种子」留空(默认)时,结果用浏览器的 crypto.getRandomValues(密码学安全随机数)生成,每次都不同,每种结果出现的概率相同(偏差小于千万亿分之一)。填写种子后改用确定性的伪随机数生成器(mulberry32):同一种子总是得到同样的结果,便于复现,但结果可以被预测,不要把带种子的结果用于密码或需要公证的抽奖。With Seed left blank (the default), the output comes from the browser's crypto.getRandomValues (cryptographically secure randomness), so it differs every time and every outcome is equally likely (any bias is below one in a million billion). If you enter a seed, a deterministic pseudo-random generator (mulberry32) is used instead: the same seed always gives the same output, which is handy for reproducing a result, but it is predictable, so do not use seeded output for passwords or audited draws.

输入和输出是什么样的?What does the input and output look like?

例如在「生成随机二进制数」中把「个数」设为 2,「位数」设为 4,「种子」设为 1,输出为:1011 ⏎ 1101(⏎ 表示换行)。For example, in the Generate Random Binary Numbers with "How many" set to 2, "Bits" set to 4, "Seed" set to 1, the output is: 1011 ⏎ 1101 (⏎ marks a line break).

有哪些选项可以调整?What options can I adjust?

「生成随机二进制数」的设置:「个数」默认 5;「位数」默认 8;「种子(留空 = 安全随机)」可留空;可勾选:「加 0b 前缀」。每次生成结果都按当前设置处理。Settings in the Generate Random Binary Numbers — "How many" default 5; "Bits" default 8; "Seed (blank = secure random)" optional; tick boxes: "Prefix 0b". The result always uses the current settings.

「生成随机二进制数」免费吗?需要注册吗?Is the Generate Random Binary Numbers free? Do I need an account?

「生成随机二进制数」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Random Binary Numbers is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

🎲 随机二进制数生成器(指定位数、不重复、可设种子)Generate Random Binary Values₈ 生成随机八进制数Generate Random Octal Numbers⧉ 由正则生成随机串Generate Random Data from Regexp🔢 生成随机数字对Generate Random Digit Pairs🎲 随机挑一个数字Pick Random Digit🏆 随机抽奖 / 挑赢家Pick Winner🆔 UUID 生成器UUID Generator🔑 随机密码生成器Password Generator🎰 随机数生成器Random Number Generator🎲 抛硬币 / 掷骰子Coin Flip & Dice Roller🔤 随机字符串生成器Random String Generator📅 随机日期生成器Random Date Generator

← 全部工具All tools