aboutsummaryrefslogtreecommitdiff
path: root/src/experimental/randombasic.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-05-04 18:44:53 +0000
committerMike Buland <eichlan@xagasoft.com>2012-05-04 18:44:53 +0000
commit55431ec82f1db436938125d9d6169aab79cbd3d3 (patch)
treeaf9c31eff2a44efacded45dca5bcb027ffbe743d /src/experimental/randombasic.h
parent3e3f79bc35d94fab81cb31e42d8699a7eee102a4 (diff)
downloadlibbu++-55431ec82f1db436938125d9d6169aab79cbd3d3.tar.gz
libbu++-55431ec82f1db436938125d9d6169aab79cbd3d3.tar.bz2
libbu++-55431ec82f1db436938125d9d6169aab79cbd3d3.tar.xz
libbu++-55431ec82f1db436938125d9d6169aab79cbd3d3.zip
Two basic random number generators, Cmwc is supposed to be a pretty good one.
I need to get the base class and singleton interface in place.
Diffstat (limited to 'src/experimental/randombasic.h')
-rw-r--r--src/experimental/randombasic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/experimental/randombasic.h b/src/experimental/randombasic.h
index 2ba7bd3..6eab9dc 100644
--- a/src/experimental/randombasic.h
+++ b/src/experimental/randombasic.h
@@ -17,8 +17,12 @@ namespace Bu
17 RandomBasic(); 17 RandomBasic();
18 virtual ~RandomBasic(); 18 virtual ~RandomBasic();
19 19
20 void seed( int32_t iSeed );
21
22 int32_t rand();
23
20 private: 24 private:
21 int64_t c, m, a; 25 int64_t a, c, x;
22 }; 26 };
23}; 27};
24 28