# NextInt3

> Returns a uniformly random int3 value with all components in the interval [-2147483647, 2147483647].

## Definition

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

## NextInt3()

Returns a uniformly random int3 value with all components in the interval \[-2147483647, 2147483647].

```csharp
public int3 NextInt3()
```

### Returns

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

## NextInt3(int3)

Returns a uniformly random int3 value with all components in the interval \[0, max).

```csharp
public int3 NextInt3(int3 max)
```

### Parameters

**** (\[int3]\(/engine/6000.6/script-reference/unity/mathematics/int3)): The componentwise maximum value to generate, exclusive.

### Returns

| Type                                                              | Description                                                               |
| ----------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [int3](/engine/6000.6/script-reference/unity/mathematics/int3.md) | A uniformly random int3 value with all components in the range \[0, max). |

## NextInt3(int3, int3)

Returns a uniformly random int3 value with all components in the interval \[min, max).

```csharp
public int3 NextInt3(int3 min, int3 max)
```

### Parameters

**** (\[int3]\(/engine/6000.6/script-reference/unity/mathematics/int3)): The componentwise minimum value to generate, inclusive.**** (\[int3]\(/engine/6000.6/script-reference/unity/mathematics/int3)): The componentwise maximum value to generate, exclusive.

### Returns

| Type                                                              | Description                                  |
| ----------------------------------------------------------------- | -------------------------------------------- |
| [int3](/engine/6000.6/script-reference/unity/mathematics/int3.md) | A uniformly random int3 between \[min, max). |
