ComfyUI > Nodes > latent-tools > LTNumberRangeGaussian

ComfyUI Node: LTNumberRangeGaussian

Class Name

LTNumberRangeGaussian

Category
LatentTools
Author
Machines-of-Disruption (Account age: 80days)
Extension
latent-tools
Latest Updated
2026-02-07
Github Stars
0.03K

How to Install latent-tools

Install this extension via the ComfyUI Manager by searching for latent-tools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter latent-tools 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

LTNumberRangeGaussian Description

Randomizes parameters using Gaussian distribution for realistic variations in AI art projects.

LTNumberRangeGaussian:

The LTNumberRangeGaussian node is designed to randomize a parameter using a Gaussian distribution, which is a statistical method that generates values around a specified mean, with a spread determined by the standard deviation. This node is particularly useful for introducing controlled randomness into your AI art projects, allowing for variations that follow a natural distribution pattern. By leveraging the Gaussian distribution, you can achieve more realistic and varied outcomes, as it mimics the way many natural phenomena occur. This node is essential for artists looking to add subtle, yet impactful, variations to their work, enhancing creativity and uniqueness.

LTNumberRangeGaussian Input Parameters:

mean

The mean parameter represents the central value around which the random numbers will be generated. It is the average value of the distribution and determines the center of the Gaussian curve. The default value is 0.0, with a minimum of -1,000,000 and a maximum of 1,000,000. Adjusting the mean shifts the entire distribution along the number line, allowing you to control the baseline of your randomization.

std

The std parameter stands for standard deviation, which measures the amount of variation or dispersion from the mean. A smaller standard deviation results in values that are closer to the mean, while a larger standard deviation allows for a wider range of values. The default value is 1.0, with a minimum of 0.00001 and a maximum of 1,000,000. This parameter is crucial for controlling the spread of your random values, enabling you to fine-tune the level of randomness in your project.

seed

The seed parameter is an integer that initializes the random number generator, ensuring reproducibility of results. By using the same seed value, you can generate the same sequence of random numbers, which is useful for consistency in experiments or when sharing results. The default value is 0, with a minimum of 0 and a maximum of 0xffffffffffffffff. This parameter is essential for maintaining control over the randomness in your work, allowing for both exploration and consistency.

LTNumberRangeGaussian Output Parameters:

FLOAT

The FLOAT output is the primary result of the Gaussian randomization process, providing a floating-point number that represents the randomized parameter. This output is crucial for applications where precise numerical values are required, such as adjusting parameters in AI models or simulations.

INT

The INT output is an integer representation of the randomized parameter, derived by converting the FLOAT output to an integer. This output is useful when whole numbers are needed, such as in scenarios where discrete values are required for indexing or categorization.

STRING

The STRING output provides a string representation of the randomized parameter, rounded to five decimal places. This output is beneficial for logging, debugging, or displaying the randomized value in a user-friendly format, ensuring clarity and ease of interpretation.

LTNumberRangeGaussian Usage Tips:

  • Use a small std value to generate numbers closely clustered around the mean, which is useful for subtle variations.
  • Experiment with different seed values to explore a wide range of random outcomes while maintaining the ability to reproduce specific results.

LTNumberRangeGaussian Common Errors and Solutions:

ValueError: Mean or standard deviation out of range

  • Explanation: This error occurs when the mean or std values are set outside their allowed range.
  • Solution: Ensure that the mean is between -1,000,000 and 1,000,000, and the std is between 0.00001 and 1,000,000.

TypeError: Seed must be an integer

  • Explanation: This error arises when the seed parameter is not an integer.
  • Solution: Verify that the seed is an integer value within the specified range of 0 to 0xffffffffffffffff.

LTNumberRangeGaussian Related Nodes

Go back to the extension to check out more related nodes.
latent-tools
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.

LTNumberRangeGaussian