Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-lhyNodes > CSV RandomPicker (Advanced)

ComfyUI Node: CSV RandomPicker (Advanced)

Class Name

CSVRandomPickerAdv

Category
lhyNodes/String
Author
lihaoyun6 (Account age: 3821days)
Extension
ComfyUI-lhyNodes
Latest Updated
2026-05-31
Github Stars
0.02K

How to Install ComfyUI-lhyNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-lhyNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-lhyNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

CSV RandomPicker (Advanced) Description

Versatile node for random selection from CSV with adjustable item range, ideal for diverse and controlled selections.

CSV RandomPicker (Advanced):

CSVRandomPickerAdv is a versatile node designed to randomly select elements from a CSV string based on a specified seed. This advanced version of the CSVRandomPicker node allows for more flexibility by enabling you to define a range for the number of items to be selected, rather than a fixed count. This feature is particularly useful when you want to introduce variability in the selection process, making it ideal for applications where randomness and diversity are desired. By specifying both minimum and maximum counts, you can control the extent of randomness while ensuring that the selection remains within a defined boundary. The node also allows customization of input and output separators, providing further control over how the data is processed and presented. Overall, CSVRandomPickerAdv is a powerful tool for generating random selections from a list, offering enhanced functionality and adaptability for creative projects.

CSV RandomPicker (Advanced) Input Parameters:

csv_string

The csv_string parameter is a multiline string input that contains the list of items from which random selections will be made. Each item in the list should be separated by the specified input_separator. This parameter is crucial as it defines the pool of elements available for selection. The default value is "apple,banana,cat,dog".

min_count

The min_count parameter specifies the minimum number of items to be randomly selected from the csv_string. It ensures that at least this number of items will be chosen, providing a lower bound for the selection process. The default value is 1, with a minimum of 1 and a maximum of 1000.

max_count

The max_count parameter defines the maximum number of items that can be selected. It sets an upper limit on the selection, allowing for variability in the number of items chosen. The default value is 1, with a minimum of 1 and a maximum of 1000. It is important that max_count is greater than or equal to min_count.

input_separator

The input_separator parameter is a string that specifies the character used to separate items in the csv_string. This allows the node to correctly parse the input string into individual elements. The default separator is a comma (,).

output_separator

The output_separator parameter determines the character used to join the selected items into a single string for output. This provides flexibility in how the results are formatted. The default separator is a comma (,).

seed

The seed parameter is an integer that initializes the random number generator used for selection. By setting a specific seed, you can ensure that the random selection process is repeatable, producing the same results each time the node is executed with the same inputs. The default value is 0, with a minimum of 0 and a maximum of 1125899906842624.

CSV RandomPicker (Advanced) Output Parameters:

STRING

The output is a single string that contains the randomly selected items from the csv_string, joined together using the specified output_separator. This output represents the result of the random selection process and can be used in subsequent nodes or processes. The output is crucial for applications that require a randomized subset of elements from a larger list.

CSV RandomPicker (Advanced) Usage Tips:

  • To ensure variability in your selections, experiment with different min_count and max_count values to see how they affect the randomness of the output.
  • Use a consistent seed value if you need to reproduce the same random selection across multiple runs, which is useful for testing and debugging.

CSV RandomPicker (Advanced) Common Errors and Solutions:

"max_count" must be greater than "min_count"!

  • Explanation: This error occurs when the max_count parameter is set to a value less than the min_count parameter, which is not allowed.
  • Solution: Ensure that the max_count is always greater than or equal to min_count to avoid this error.

Empty output

  • Explanation: If the csv_string is empty or only contains separators, the node will not have any items to select, resulting in an empty output.
  • Solution: Check that the csv_string contains valid items separated by the input_separator. Ensure there are no unintended empty entries.

CSV RandomPicker (Advanced) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-lhyNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

CSV RandomPicker (Advanced)