🔀 打乱数字各位Shuffle Digits
随机打乱整数的各位数字(可保留符号,可设种子)。本地处理。可设置「种子」、「保留负号」。Randomly shuffle digits of an integer (optional keep sign; optional seed). Processed locally. Settings: Seed, Keep minus.
使用说明与常见问题How-to & FAQ
「打乱数字各位」是什么?What is the Shuffle Digits tool?
随机打乱整数的各位数字(可保留符号,可设种子)。本地处理。可设置「种子」、「保留负号」。Randomly shuffle digits of an integer (optional keep sign; optional seed). Processed locally. Settings: Seed, Keep minus.
如何使用「打乱数字各位」?How do I use the Shuffle Digits tool?
在「打乱数字各位」中,把内容粘贴或输入到上方输入框,按需设置「种子」,结果会实时显示在下方,点击「复制结果」即可复制。In the Shuffle Digits: Paste or type into the input box, adjust "Seed"; the result appears below instantly — click "Copy result" to copy it.
打乱后会以 0 开头吗?Can the shuffled number start with 0?
不会。如果打乱后第一位是 0,它会与后面第一个非 0 数字交换;只有所有数字都是 0 时才保留 0 开头。填写种子可以复现同一结果。No. If the shuffle puts a 0 first, it is swapped with the first non-zero digit after it; only an all-zero number can start with 0. Enter a seed to reproduce the same shuffle.
能处理多长的数?会丢失精度吗?How long can the number be? Is precision lost?
最多 100,000 位。数字按文本逐位处理,只是调换各位的位置,不做数值计算,所以不会丢失任何一位,例如 30 位的 123456789012345678901234567890 也能打乱。千位分隔逗号会去掉并提示;1e3 这样的指数写法和小数会报错。Up to 100,000 digits. The number is processed as text — the digits are only rearranged, with no arithmetic — so no digit is ever lost; a 30-digit value such as 123456789012345678901234567890 works too. Thousands commas are removed with a note; exponent forms such as 1e3 and decimals give an error.
输入和输出是什么样的?What does the input and output look like?
例如在「打乱数字各位」中输入 1234,「种子」设为 1,输出为:3214。For example, the Shuffle Digits turns the input 1234, "Seed" set to 1 into: 3214.
有哪些选项可以调整?What options can I adjust?
「打乱数字各位」的设置:「种子」默认 1;可勾选:「保留负号」(默认勾选)。每次生成结果都按当前设置处理。Settings in the Shuffle Digits — "Seed" default 1; tick boxes: "Keep minus" (on by default). The result always uses the current settings.
「打乱数字各位」免费吗?需要注册吗?Is the Shuffle Digits free? Do I need an account?
「打乱数字各位」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Shuffle Digits is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.