diff options
Diffstat (limited to 'src/experimental/randombasic.cpp')
| -rw-r--r-- | src/experimental/randombasic.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/experimental/randombasic.cpp b/src/experimental/randombasic.cpp deleted file mode 100644 index ac591be..0000000 --- a/src/experimental/randombasic.cpp +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
| 3 | * | ||
| 4 | * This file is part of the libbu++ library and is released under the | ||
| 5 | * terms of the license contained in the file LICENSE. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #include "bu/randombasic.h" | ||
| 9 | |||
| 10 | Bu::RandomBasic::RandomBasic() : | ||
| 11 | a( 6364136223846793005 ), | ||
| 12 | c( 1442695040888963407 ), | ||
| 13 | x( 0 ) | ||
| 14 | { | ||
| 15 | } | ||
| 16 | |||
| 17 | Bu::RandomBasic::~RandomBasic() | ||
| 18 | { | ||
| 19 | } | ||
| 20 | |||
| 21 | void Bu::RandomBasic::seed( int32_t iSeed ) | ||
| 22 | { | ||
| 23 | c = iSeed; | ||
| 24 | } | ||
| 25 | |||
| 26 | int32_t Bu::RandomBasic::rand() | ||
| 27 | { | ||
| 28 | x = (a*x + c); | ||
| 29 | return (int32_t)x; | ||
| 30 | } | ||
| 31 | |||
