> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ShuffleImageTextDataset - ComfyUI Built-in Node Documentation

> Complete documentation for the ShuffleImageTextDataset node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ShuffleImageTextDataset/zh.md)

此节点将图像列表和文本列表一起打乱，同时保持它们的配对关系不变。它使用随机种子来确定打乱顺序，确保相同的输入列表在每次重用种子时都会以相同的方式被打乱。

## 输入参数

| 参数名      | 数据类型   | 必填 | 取值范围                     | 描述                     |
| -------- | ------ | -- | ------------------------ | ---------------------- |
| `images` | IMAGE  | 是  | -                        | 需要打乱的图像列表。             |
| `texts`  | STRING | 是  | -                        | 需要打乱的文本列表。             |
| `seed`   | INT    | 否  | 0 到 18446744073709551615 | 随机种子。打乱顺序由此值决定（默认值：0）。 |

**注意：** `images` 和 `texts` 输入必须是长度相同的列表。节点在将这些配对一起打乱之前，会将第一张图像与第一个文本配对，第二张图像与第二个文本配对，依此类推。

## 输出结果

| 输出名称     | 数据类型   | 描述                      |
| -------- | ------ | ----------------------- |
| `images` | IMAGE  | 打乱后的图像列表。               |
| `texts`  | STRING | 打乱后的文本列表，保持其与图像的原始配对关系。 |
