Files
old-spike/shared/utils/math.js
2016-02-07 15:32:02 -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;
}
}