Unreal Engine Blueprint API Reference > Math > Random
Returns a random vector with length of 1, within the specified cone, with uniform random distribution. The shape of the cone can be modified according to the yaw and pitch angles.
Target is Kismet Math Library
Inputs
Type | Name | Description |
---|---|---|
struct | Stream | The random stream from which to obtain the vector. |
vector | Cone Dir | |
real | Max Yaw in Degrees | The yaw angle of the cone (from ConeDir to horizontal edge), in degrees. |
real | Max Pitch in Degrees | The pitch angle of the cone (from ConeDir to vertical edge), in degrees. |
Outputs
Type | Name | Description |
---|---|---|
vector | Return Value |