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