>> Another way is to generate a random vector:
>>
>> #local vResult=vrotate(x,<rand(Seed),rand(Seed),rand(Seed)>*360);
>
> vResult is not uniformly distributed over the sphere with this approach
> though...
>
rand.inc has macros that return random vectors uniformly distributed
over a sphere's volume or surface.
Post a reply to this message
|