文字与文档工具

随机抽取行

粘贴文本,选择抽取行数,然后查看本地随机样本。

优先本地处理无需注册隐私说明 ↗

最多 100,000 个字符和 10,000 行。空行会计数,被选中的行文本按原样保留。

粘贴文本开始。

使用步骤

如何使用

  1. 粘贴最多 100,000 个字符的纯文本。
  2. 选择 1 到输入行数之间的整数。
  3. 抽取行并检查或复制结果。

Without replacement

每次抽取都从不同的输入位置选择。不同输入行中的相同文本仍可能出现多次。

Bounded local input

The count must be a whole number from 1 through the number of input lines. Input is limited to 100,000 characters and 10,000 lines; blank lines count and selected line text is preserved.

Browser-only cryptographic randomness

Selection uses crypto.getRandomValues with rejection sampling to avoid modulo bias. Text is processed in this browser and is not uploaded or stored.

常见问题

你可能还想知道

同一行会被抽取两次吗?

不会,抽取不放回;不同输入行中的相同文本仍可分别参与抽取。

What happens when the requested count exceeds the input lines?

The tool reports an error and does not produce a partial result.

Are blank lines preserved?

Blank lines count as input lines and can be selected; selected line text is returned as-is.