# Random

### What It Does

The Random node generates a random decimal number between 0 (inclusive) and 1 (exclusive). It's useful for creating variability, randomized designs, and simulating unpredictable behaviors.

### Inputs

| Name   | Description               | Type  | Required |
| ------ | ------------------------- | ----- | -------- |
| *None* | *This node has no inputs* | *N/A* | *N/A*    |

### Outputs

| Name  | Description                     | Type   |
| ----- | ------------------------------- | ------ |
| Value | A random number between 0 and 1 | Number |

<figure><img src="https://3657049418-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy0SFXZjN1sdgdxYM7QPE%2Fuploads%2FjyD0BgGf0pcG70FrBy8R%2FScreenshot%202025-04-08%20at%204.45.14%E2%80%AFPM.png?alt=media&#x26;token=9b84cb97-4eba-4d0b-a1c4-a08387e92048" alt=""><figcaption></figcaption></figure>

### How to Use It

1. Drag the Random node into your graph.
2. The node generates a random value when it's first created.
3. Connect the "Value" output to other nodes that need randomization.
4. Note that the value stays fixed after generation and doesn't change during execution.

![Random Example](https://3657049418-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy0SFXZjN1sdgdxYM7QPE%2Fuploads%2FA5EAYeuUEdeGYXFhdMpU%2FScreenshot%202025-04-08%20at%204.44.22%E2%80%AFPM.png?alt=media\&token=4ce77f44-2d51-4869-a83d-cc4c1ad3796f)

### Tips

* To get a random range other than 0-1, use math nodes to scale and shift the output.
* For values like 0-100, multiply the random value by 100.
* For ranges like 20-50, multiply by 30 (the range) and add 20 (the minimum).

### See Also

* **Range Mapping**: For mapping the 0-1 output to other ranges.
* **Multiply**: For scaling the random value.

### Use Cases

* **Variation in Design**: Add controlled randomness to spacing, sizing, or colors.
* **Testing Edge Cases**: Simulate different possible values during system testing.
* **Jitter Effects**: Add natural-looking variation to regular patterns or layouts.
