Files
old-spike/lib/utils/math.js
2016-01-31 11:35:22 -06:00

11 lines
236 B
JavaScript

export default class {
static normal(average){
return average + this.n6() * average;
}
static n6(){
return ((Math.random() + Math.random() + Math.random() + Math.random() + Math.random() + Math.random()) - 3) / 3;
}
}