> For the complete documentation index, see [llms.txt](https://pahutyakv.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pahutyakv.gitbook.io/docs/randomly/.noise.md).

# .Noise

`Randomly.Noise` provides Perlin and Value noise generation for 1D, 2D, 3D spaces with optional fractal details.

***

### <mark style="color:$success;">Perlin Noise</mark>

* `Perlin1D(x)` – Generates 1D Perlin noise at a given position.
* `Perlin2D(x, y)` – Generates 2D Perlin noise at given coordinates.
* `Perlin3D(x, y, z)` – Generates 3D Perlin noise at given coordinates.
* `FractalPerlin2D(x, y, octaves, persistence, lacunarity)` – Generates fractal 2D Perlin noise using multiple octaves, persistence, and lacunarity.

***

### <mark style="color:$success;">Value Noise</mark>

* `ValueNoise2D(x, y)` – Generates 2D value noise at given coordinates.

***

{% code title="Example.cs" %}

```csharp
// Generate 2D Perlin noise
float noiseValue = Randomly.Noise.Perlin2D(3.5f, 7.2f);

// Generate fractal Perlin noise
float fractalNoise = Randomly.Noise.FractalPerlin2D(1.0f, 2.0f, octaves: 4, persistence: 0.5f, lacunarity: 2f);
```

{% endcode %}
