title: Implementing randomness for physics (like in Blender)
body: <p>I am referring, as an example, to Blender's particle collision system, where you can set the randomness for particle damping between 0.0 and 1.0.
  My question now is: how does it exactly work? Yes, there will be a random number between 0.0 and 1.0 but how is it applied to the damping factor? I want to create something similar in Java and therefore I want to fully understand the calculation behind that. Is the random factor the probability p and the calculation something like a gaussian distribution?
  As an application example: I want to randomize the direction of a vector.</p>
  <p><code>vector.y += random1; vector.y += random2; vector.z += random3; vector.scale(prevLength/vector.length);</code></p>
  <p>However, it might appear, that all vector components become zero, it's very unlikely but not impossible. So clearly this is not the right solution.</p>