2016-01-27 20:15:09 -06:00
|
|
|
export default class {
|
2016-01-31 11:35:22 -06:00
|
|
|
|
2016-01-27 20:15:09 -06:00
|
|
|
static normal(average){
|
2016-01-31 11:35:22 -06:00
|
|
|
return average + this.n6() * average;
|
2016-01-27 20:15:09 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static n6(){
|
|
|
|
|
return ((Math.random() + Math.random() + Math.random() + Math.random() + Math.random() + Math.random()) - 3) / 3;
|
|
|
|
|
}
|
|
|
|
|
}
|