Skewing random numbers towards 0

By fritz

A quick way to skew random numbers towards 0 is to raise them to some powers – the higher the power, the higher the skew.

var num:Number    = Math.pow( Math.random(), 2 );

Leave a Reply