diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-05-22 16:57:15 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-05-22 16:57:15 +0000 |
commit | 2295579eb790d6eff6e54e84c01da6de10809a71 (patch) | |
tree | 3d8282dedc137fee009f71ff904370537009e504 /src/experimental/randombasic.h | |
parent | 690ad7280e655654a3bcca2ca5ced9caacf75c8b (diff) | |
download | libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.gz libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.bz2 libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.xz libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.zip |
Better win_o ignores. The random number system is pretty much together.
We need a few extra helper functions to cover some other good things, like
normalized floating point numbers, etc.
Diffstat (limited to 'src/experimental/randombasic.h')
-rw-r--r-- | src/experimental/randombasic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/experimental/randombasic.h b/src/experimental/randombasic.h index 6eab9dc..a53e16f 100644 --- a/src/experimental/randombasic.h +++ b/src/experimental/randombasic.h | |||
@@ -7,19 +7,19 @@ | |||
7 | #ifndef BU_RANDOM_BASIC_H | 7 | #ifndef BU_RANDOM_BASIC_H |
8 | #define BU_RANDOM_BASIC_H | 8 | #define BU_RANDOM_BASIC_H |
9 | 9 | ||
10 | #include <stdint.h> | 10 | #include "bu/randombase.h" |
11 | 11 | ||
12 | namespace Bu | 12 | namespace Bu |
13 | { | 13 | { |
14 | class RandomBasic | 14 | class RandomBasic : public RandomBase |
15 | { | 15 | { |
16 | public: | 16 | public: |
17 | RandomBasic(); | 17 | RandomBasic(); |
18 | virtual ~RandomBasic(); | 18 | virtual ~RandomBasic(); |
19 | 19 | ||
20 | void seed( int32_t iSeed ); | 20 | virtual void seed( int32_t iSeed ); |
21 | 21 | ||
22 | int32_t rand(); | 22 | virtual int32_t rand(); |
23 | 23 | ||
24 | private: | 24 | private: |
25 | int64_t a, c, x; | 25 | int64_t a, c, x; |