Method RandomPositionInsideUnitSphere
RandomPositionInsideUnitSphere(uint)
A function that returns a single random position, fairly distributed inside the unit sphere.
Declaration
public static float3 RandomPositionInsideUnitSphere(uint seed)
Parameters
Type | Name | Description |
---|---|---|
uint | seed | A seed to the random number generator |
Returns
Type | Description |
---|---|
float3 | A point inside of the unit sphere, fairly distributed |