Skewing random numbers towards 0
A quick way to skew random numbers towards 0 is to raise them to some powers – the higher the power, the higher the skew. Obviously not the most efficient way of doing it, but could be useful in certain occasions where performance is not an issue.
var num = Math.pow( Math.random(), 2 );