# Sandbox.Navigation.NavMesh.GetRandomPoint

## Overload 1

```csharp
System.Nullable<Vector3> GetRandomPoint()
```

### Returns

`System.Nullable<Vector3>`

## Overload 2

```csharp
System.Nullable<Vector3> GetRandomPoint(BBox box)
```

Get a random point on the navmesh, within the bounding box.
This will return null if it can't find a point on the navmesh in a few tries. Returning false doesn't mean it's impossible, our algorithm here isn't the best.

### Parameters

- `box` (`BBox`)

### Returns

`System.Nullable<Vector3>`

## Overload 3

```csharp
System.Nullable<Vector3> GetRandomPoint(Vector3 position, float radius)
```

Get a random point on the navmesh, within the sphere.
This will return null if it can't find a point on the navmesh in a few tries. Returning false doesn't mean it's impossible, our algorithm here isn't the best.

### Parameters

- `position` (`Vector3`)
- `radius` (`float`)

### Returns

`System.Nullable<Vector3>`

Declared in [Sandbox.Navigation.NavMesh](/api/Sandbox.Navigation.NavMesh).
Assembly: `Sandbox.Engine`.
