> 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/.math.md).

# .Math

`Randomly.Math` provides random mathematical distributions and sign generation.

***

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

* `Gaussian(mean = 0f, deviation = 1f)` – Generates a random value following a Gaussian (normal) distribution.
* `GaussianBlend(a, b, intensity = 0.1f)` – Generates a random value blended between two numbers with added Gaussian noise.
* `Exponential(lambda = 1f)` – Generates a random value following an exponential distribution.

***

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

* `Sign()` – Generates a random sign (+1 or -1) with equal probability.
* `Sign(chance)` – Generates a random sign (+1 or -1) with a specified chance for +1.

***

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

```csharp
// Gaussian random value
float g = Randomly.Math.Gaussian(0f, 2f);

// Random sign with 70% chance of +1
int s2 = Randomly.Math.Sign(0.7f);
```

{% endcode %}
