Version: 2018.2
public static Vector3 onUnitSphere ;

Description

Возвращает случайную точку на поверхности сферы радиусом 1 (Read Only).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Sets the rigidbody velocity to 10 and in a random direction.

GetComponent<Rigidbody>().velocity = Random.onUnitSphere * 10; } }