Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate controlled random numbers within a range for AI art and simulations with optional seed for reproducibility.
The FL_RandomNumber
node is designed to generate random numbers within a specified range, providing both integer and floating-point values. This node is particularly useful for AI artists who need to introduce randomness into their workflows, such as generating random parameters for procedural art or simulations. By allowing you to specify a range and an optional seed, the node ensures that the generated random numbers can be both controlled and reproducible. This flexibility makes it an essential tool for creating varied and dynamic outputs while maintaining the option for consistency when needed.
The min_value
parameter sets the lower bound of the range within which the random numbers will be generated. This value can be any floating-point number between -1000000.0 and 1000000.0, with a default of 0.0. Adjusting this parameter allows you to control the minimum possible value of the generated random numbers, which is useful for ensuring that the output stays within a desired range.
The max_value
parameter sets the upper bound of the range for the random number generation. Similar to min_value
, this can be any floating-point number between -1000000.0 and 1000000.0, with a default of 1.0. This parameter is crucial for defining the maximum possible value of the generated random numbers, allowing you to tailor the output to specific needs.
The seed
parameter is an integer that initializes the random number generator to ensure reproducibility. It can range from 0 to 1000000, with a default value of 0. When set to 0, a random seed is generated automatically. Using a specific seed value allows you to produce the same sequence of random numbers across different runs, which is useful for debugging or when consistent results are required.
The INT
output is a randomly generated integer within the specified range defined by min_value
and max_value
. This output is useful for scenarios where whole numbers are needed, such as selecting random indices or generating discrete values for procedural content.
The FLOAT
output is a randomly generated floating-point number within the specified range defined by min_value
and max_value
. This output is ideal for applications requiring continuous values, such as randomizing parameters in a smooth gradient or generating noise values for textures.
seed
value. This will allow you to generate the same random numbers each time you run the node.min_value
and max_value
to introduce more variability in your outputs, which can be particularly useful for creating diverse procedural art.min_value
parameter is set higher than the max_value
parameter.min_value
is less than or equal to the max_value
to avoid this error.FL_RandomNumber
node but may appear if the node is used in conjunction with other nodes requiring a directory path.© Copyright 2024 RunComfy. All Rights Reserved.