From 89a44cf83750da373755f9d1facc4c52a292c78d Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Wed, 1 Jun 2022 20:49:00 +0200 Subject: [PATCH] now using `this.seed` instead of `seed` --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))