This commit is contained in:
j 2023-11-16 16:17:25 +01:00
parent 2dfdbab199
commit ecbd30c460
1 changed files with 2 additions and 4 deletions

6
pi.py
View File

@ -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):