🔍

首页Home › 数学工具Math

⃗ 生成随机向量Generate Random Vector

生成指定维数的随机实数/整数向量。本地处理。可设置「维数」、「下限」、「上限」、「种子」、「分隔」。Generate a random real/integer vector of a chosen dimension. Processed locally. Settings: Dimension, Min, Max, Seed, Separator.

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

「生成随机向量」是什么?What is the Generate Random Vector tool?

生成指定维数的随机实数/整数向量。本地处理。可设置「维数」、「下限」、「上限」、「种子」、「分隔」。Generate a random real/integer vector of a chosen dimension. Processed locally. Settings: Dimension, Min, Max, Seed, Separator.

如何使用「生成随机向量」?How do I use the Generate Random Vector tool?

在「生成随机向量」中,按需设置「维数」、「下限」、「上限」、「种子」、「分隔」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Random Vector: Adjust "Dimension", "Min", "Max", "Seed", "Separator"; the result appears below instantly — click "Copy result" to copy it.

「种子」有什么用?What does the seed do?

填写任意文字作为种子后,相同的种子和设置总会生成同一个向量,便于复现;留空则使用浏览器的加密随机数,每次结果都不同。With any text as the seed, the same seed and settings always produce the same vector, so results can be reproduced. Leave it empty to use the browser's cryptographic random numbers, giving a new vector each time.

取值范围包含上限吗?结果精确吗?Is Max included? How precise are the values?

勾选“取整”时,每个分量是下限到上限之间(两端都包含)的随机整数,例如下限 0、上限 1 会得到 0 和 1;这些整数每一位都是准确的。不取整时是 [下限, 上限) 之间的实数,用浏览器的随机数按双精度(64 位)浮点数生成并显示 10 位有效数字,很小的值会以 8.17e-8 这样的指数形式显示。In Integers mode each component is a random whole number from Min to Max with both ends included, so Min 0 and Max 1 gives both 0 and 1; every digit shown is correct. Otherwise the components are real numbers in [Min, Max), generated in double-precision floating point and shown to 10 significant digits; very small values appear in exponent form such as 8.17e-8.

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

例如在「生成随机向量」中把「维数」设为 3,「下限」设为 0,「上限」设为 0,「种子」设为 1,输出为:0 0 0。For example, in the Generate Random Vector with "Dimension" set to 3, "Min" set to 0, "Max" set to 0, "Seed" set to 1, the output is: 0 0 0.

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

「生成随机向量」的设置:「维数」默认 3;「下限」默认 0;「上限」默认 1;「种子」默认 1;「分隔」可选 空格、逗号(默认 空格);可勾选:「取整」。每次生成结果都按当前设置处理。Settings in the Generate Random Vector — "Dimension" default 3; "Min" default 0; "Max" default 1; "Seed" default 1; "Separator": Spaces, Commas (default Spaces); tick boxes: "Integers". The result always uses the current settings.

「生成随机向量」免费吗?需要注册吗?Is the Generate Random Vector free? Do I need an account?

「生成随机向量」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Random Vector 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 Matrix𝕀 生成单位矩阵Generate Identity Matrix³ 生成立方数列Generate Sequence of Cubes² 生成平方数列Generate Sequence of Squares𝕀 生成单位矩阵Generate Unit Matrix🔁 线性递推计算器Linear Recurrence Calculator? 质数判定Number Primality Test🎯 挑一个数Pick a Number🎲 随机数字矩阵Random Number Matrix🔀 打乱数字各位Shuffle Digits🔢 排序数字各位Sort Digits📝 分数百分比计算器Marks Percentage Calculator

← 全部工具All tools