DirectX SDK

DirectX7.VectorRandom

The DirectX7.VectorRandom method returns a random unit vector.

object.VectorRandom(v As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectX7 object.
v
A D3DVECTOR type that will contain a random unit vector.

Error Codes

If the method fails, an error is raised and Err.Number is set.