seed houses
This commit is contained in:
10
lib/utils/math.js
Normal file
10
lib/utils/math.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user