# NextBool2()

> Returns a uniformly random bool2 value.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public bool2 NextBool2()
```

### Returns

| Type                                                                | Description                     |
| ------------------------------------------------------------------- | ------------------------------- |
| [bool2](/engine/6000.5/script-reference/unity/mathematics/bool2.md) | A uniformly random bool2 value. |
