diff --git a/server.js b/server.js index 3488c7a..0d061bc 100644 --- a/server.js +++ b/server.js @@ -102,8 +102,8 @@ function RNG(seed) { this.random = function(min,max) { if(!min)min=0 if(!max)max=1 - seed += Math.log(Math.abs(Math.sin(seed))*100) - return Math.abs(Math.sin(seed))*max + min + this.seed += Math.log(Math.abs(Math.sin(this.seed))*100) + return Math.abs(Math.sin(this.seed))*max + min } this.rand = function(min,max) { return Math.floor(this.random(min,max))