# insideUnitSphere

> Returns a random point inside or on a sphere with radius 1.0 (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Vector3 insideUnitSphere { get; }
```

### Remarks

Note that the probability space includes the surface of the sphere because [Random.value](/engine/6000.0/script-reference/unityengine/random/value.md), which is inclusive to 1.0, is used to acquire a random radius.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Sets the position to be somewhere inside a sphere
        // with radius 5 and the center at zero.

        transform.position = Random.insideUnitSphere * 5;
    }
}
```
