aboutsummaryrefslogtreecommitdiff
path: root/Tausworthe.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tausworthe.py')
-rw-r--r--Tausworthe.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Tausworthe.py b/Tausworthe.py
deleted file mode 100644
index 303f358..0000000
--- a/Tausworthe.py
+++ /dev/null
@@ -1,16 +0,0 @@
-
-import taus
-
-class TauswortheRNG(object):
-
- def __init__(self, seed=0):
- self.seed = seed
- self.state = taus.seed(seed)
-
- def randi(self):
- tmp = taus.rand(self.state)
- self.state = tmp[:-1]
- return(tmp[-1])
-
- def rand(self):
- return self.randi() * 2.3283064365387e-10