Files
old-spike/lib/utils/math.js
Eric Hulburd e4513282f9 seed houses
2016-01-27 20:15:09 -06:00

11 lines
233 B
JavaScript

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