aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2015-07-30 15:31:04 +0200
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2015-07-30 15:31:04 +0200
commitf4a3b09992a66d5cc71f1511ae3bf302235bdf1a (patch)
tree55ea7244d3103b6b207fab4424a14e1b1ec4ede8
parentadded LICENSE (diff)
downloadSyncRNG-f4a3b09992a66d5cc71f1511ae3bf302235bdf1a.tar.gz
SyncRNG-f4a3b09992a66d5cc71f1511ae3bf302235bdf1a.zip
remove test code
-rw-r--r--Tausworthe.R10
-rw-r--r--Tausworthe.py6
2 files changed, 0 insertions, 16 deletions
diff --git a/Tausworthe.R b/Tausworthe.R
index d35622a..e4fe355 100644
--- a/Tausworthe.R
+++ b/Tausworthe.R
@@ -43,13 +43,3 @@ taus.randi <- function(t)
{
return(t$randi())
}
-
-test.randi <- function()
-{
- t <- TauswortheRNG(seed=112339)
- for (i in 1:1000000) {
- cat(t$randi(), "\n")
- }
-}
-
-test.randi()
diff --git a/Tausworthe.py b/Tausworthe.py
index f61fc70..303f358 100644
--- a/Tausworthe.py
+++ b/Tausworthe.py
@@ -14,9 +14,3 @@ class TauswortheRNG(object):
def rand(self):
return self.randi() * 2.3283064365387e-10
-
-
-if __name__ == '__main__':
- t = TauswortheRNG(112339)
- for i in range(1000000):
- print(t.randi())