Returns a random unit vector.
LPD3DVECTOR D3DRMVectorRandom(
LPD3DVECTOR lpd
);
Parameters
lpd
Address of a D3DVECTOR structure that will contain a random unit vector.
Return Values
Returns the address of the vector that was passed as the first parameter if successful, or zero otherwise.