# NextBool()

> Returns a uniformly random bool value.

## Definition

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

```csharp
public bool NextBool()
```

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | A uniformly random boolean value. |
