🎲 随机数字矩阵Random Number Matrix
生成随机整数矩阵(同「生成随机矩阵」)。本地处理。可设置「行数」、「列数」、「下限」、「上限」、「种子」。Generate a random integer matrix (same family as Generate Random Matrix). Processed locally. Settings: Rows, Columns, Min, Max, Seed.
使用说明与常见问题How-to & FAQ
「随机数字矩阵」是什么?What is the Random Number Matrix tool?
生成随机整数矩阵(同「生成随机矩阵」)。本地处理。可设置「行数」、「列数」、「下限」、「上限」、「种子」。Generate a random integer matrix (same family as Generate Random Matrix). Processed locally. Settings: Rows, Columns, Min, Max, Seed.
如何使用「随机数字矩阵」?How do I use the Random Number Matrix tool?
在「随机数字矩阵」中,按需设置「行数」、「列数」、「下限」、「上限」、「种子」,结果会实时显示在下方,点击「复制结果」即可复制。In the Random Number Matrix: Adjust "Rows", "Columns", "Min", "Max", "Seed"; the result appears below instantly — click "Copy result" to copy it.
和“生成随机矩阵”有什么区别?How is it different from Generate Random Matrix?
两者是同一类工具:都按行数、列数、最小值、最大值和种子生成随机整数矩阵,只是页面名称不同,方便用不同说法搜索的用户找到。They are the same kind of tool: both build a random integer matrix from rows, columns, minimum, maximum and a seed; the names differ so people searching either phrase can find it.
下限和上限可以多大?结果精确吗?How large can Min and Max be? Are the values exact?
下限和上限都是最多 40 位的整数(可以为负),按大整数(BigInt)读取和生成,不经过浮点,所以像 9007199254740993 到 9007199254740995 这样超过 2^53 的范围也只会得到范围内的精确整数,两端都包含。范围很大时用拒绝采样,保证每个整数的概率相同。1e16 这样的指数写法和小数会报错。Min and Max are whole numbers of up to 40 digits (negative allowed). They are read and generated as big integers (BigInt) with no floating-point step, so even a range above 2^53 such as 9007199254740993 to 9007199254740995 gives only exact integers inside the range, both ends included. Large ranges use rejection sampling so every integer is equally likely. Exponent forms such as 1e16 and decimals give an error.
种子有什么用?What does Seed do?
同一种子总是得到同一个矩阵;把种子清空则每次用浏览器的安全随机数(crypto.getRandomValues)。The same seed always gives the same matrix; clear the Seed box to use the browser's secure random numbers (crypto.getRandomValues) each time.
输入和输出是什么样的?What does the input and output look like?
例如在「随机数字矩阵」中把「行数」设为 2,「列数」设为 2,「下限」设为 0,「上限」设为 0,「种子」设为 1,输出为:0 0 ⏎ 0 0(⏎ 表示换行)。For example, in the Random Number Matrix with "Rows" set to 2, "Columns" set to 2, "Min" set to 0, "Max" set to 0, "Seed" set to 1, the output is: 0 0 ⏎ 0 0 (⏎ marks a line break).
有哪些选项可以调整?What options can I adjust?
「随机数字矩阵」的设置:「行数」默认 3;「列数」默认 3;「下限」默认 0;「上限」默认 9;「种子」默认 1。每次生成结果都按当前设置处理。Settings in the Random Number Matrix — "Rows" default 3; "Columns" default 3; "Min" default 0; "Max" default 9; "Seed" default 1. The result always uses the current settings.
「随机数字矩阵」免费吗?需要注册吗?Is the Random Number Matrix free? Do I need an account?
「随机数字矩阵」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Random Number Matrix is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.