ComfyUI > Nodes > ComfyUI-LogicUtils > Random Gaussian Float

ComfyUI Node: Random Gaussian Float

Class Name

RandomGaussianFloat

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

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

Random Gaussian Float Description

Generates random floats with specified mean and standard deviation, simulating Gaussian distribution.

Random Gaussian Float:

The RandomGaussianFloat node is designed to generate random floating-point numbers that follow a normal (Gaussian) distribution. This node is particularly useful when you need to simulate real-world scenarios where data tends to cluster around a mean value with a certain degree of variability, represented by the standard deviation. By allowing you to specify the mean and standard deviation, this node provides a flexible way to model randomness that mimics natural phenomena, such as heights, test scores, or any other data that naturally follows a bell curve distribution. The node's ability to generate numbers with a specified level of precision makes it a powerful tool for creating realistic and varied outputs in your AI art projects.

Random Gaussian Float Input Parameters:

mean

The mean parameter represents the central value around which the random numbers will be distributed. It is the average value that the generated numbers will tend to cluster around. The minimum value for this parameter is -999999999, the maximum is 999999999.0, and the default is 0.0. Adjusting the mean shifts the center of the distribution, allowing you to control the expected average of the generated numbers.

std_dev

The std_dev parameter stands for standard deviation, which measures the amount of variation or dispersion from the mean. A smaller standard deviation results in numbers that are closely clustered around the mean, while a larger standard deviation produces a wider spread of values. The minimum value is 0.0, the maximum is 999999999.0, and the default is 1.0. This parameter is crucial for controlling the variability of the generated numbers.

decimal_places

The decimal_places parameter determines the number of decimal places to which the generated random number will be rounded. This allows you to control the precision of the output, with a minimum of 0 and a maximum of 10 decimal places. The default value is 2, which provides a balance between precision and simplicity.

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 across different runs. The minimum value is 0, the maximum is 2^63-1, and the default is 0. This parameter is particularly useful for debugging or when you need consistent results.

Random Gaussian Float Output Parameters:

FLOAT

The output of the RandomGaussianFloat node is a single floating-point number that follows the specified Gaussian distribution. This number is generated based on the provided mean, standard deviation, and precision settings. The output is crucial for applications requiring realistic random data that adheres to a normal distribution, making it ideal for simulations, procedural content generation, and other creative AI tasks.

Random Gaussian Float Usage Tips:

  • To simulate realistic data, set the mean to the expected average value and adjust the std_dev to reflect the desired variability.
  • Use the seed parameter to generate consistent results across different runs, which is helpful for testing and debugging.

Random Gaussian Float Common Errors and Solutions:

ValueError: mean or std_dev out of range

  • Explanation: This error occurs when the mean or std_dev values are set outside their allowed range.
  • Solution: Ensure that the mean is between -999999999 and 999999999.0, and the std_dev is between 0.0 and 999999999.0.

ValueError: decimal_places out of range

  • Explanation: This error arises when the decimal_places parameter is set outside the range of 0 to 10.
  • Solution: Adjust the decimal_places parameter to be within the valid range of 0 to 10.

ValueError: seed out of range

  • Explanation: This error occurs if the seed value is set outside the range of 0 to 2^63-1.
  • Solution: Ensure that the seed is within the valid range to avoid this error.

Random Gaussian Float Related Nodes

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

Random Gaussian Float