Random Float
The Random Float node generates a random floating-point number between 0 and 1. It is useful when you need an unpredictable value in your spell, such as for adding variability, making decisions, or creating unique outputs.Inputs
This node has no inputs.Outputs
result(float): The randomly generated floating-point number between 0 and 1.
Configuration
This node has no configuration options.Usage
To use the Random Float node:- Add the Random Float node to your spell.
- Connect the
resultoutput to the input of another node that expects a floating-point value. - Run the spell. Each time the Random Float node is triggered, it will generate a new random number.
Example
Here’s an example of how you might use the Random Float node in a spell:Best Practices
- Use the Random Float node when you need a random floating-point value in the range [0, 1). If you need a random integer or a number in a different range, consider using the Random Integer node or combining the Random Float node with math nodes.
- Keep in mind that the Random Float node generates a new value every time it is triggered. If you want to use the same random value multiple times, store it in a variable.
