From 1342571e91319a89842d20169367ae8cdcfa0c3f Mon Sep 17 00:00:00 2001 From: j Date: Tue, 19 Dec 2023 13:25:02 +0000 Subject: [PATCH] fix pi --- cdoseaplay/pi.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cdoseaplay/pi.py b/cdoseaplay/pi.py index 491a633..05de3c3 100644 --- a/cdoseaplay/pi.py +++ b/cdoseaplay/pi.py @@ -1,12 +1,10 @@ from mpmath import mp -mp.dps = 10000 -PI = str(mp.pi).replace('.', '') class random(object): - PI = str(mp.pi).replace('.', '') - def __init__(self, offset=0): self.position = offset + mp.dps = 10000 + offset + self.PI = str(mp.pi).replace('.', '') self.numbers = list(map(int, self.PI[offset:])) def __call__(self):