Set a vector to a random value with the given magnitude.
The magnitude.
The vector to store the result in.
The vector.
Set a vector to a random value with the given magnitude.