# NextDouble2Direction()

> Returns a unit length double2 vector representing a uniformly random 2D direction.

## Definition

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

```csharp
public double2 NextDouble2Direction()
```

### Returns

| Type                                                                    | Description                                    |
| ----------------------------------------------------------------------- | ---------------------------------------------- |
| [double2](/engine/6000.7/script-reference/unity/mathematics/double2.md) | A uniformly random unit length double2 vector. |
