random vector3 unity code example
Example: how to create a random vector2 in unity
float randomAngle = Random.Range(0f, 6.28319f); //generates random angle in radians
Vector2 randomVector = new Vector2(Mathf.Cos(random), Mathf.Sin(random));
float randomAngle = Random.Range(0f, 6.28319f); //generates random angle in radians
Vector2 randomVector = new Vector2(Mathf.Cos(random), Mathf.Sin(random));