aboutsummaryrefslogtreecommitdiff
path: root/src/stable/random.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-05-23 00:39:31 +0000
committerMike Buland <eichlan@xagasoft.com>2012-05-23 00:39:31 +0000
commit20ee81a7b2d44ec985e99b4ee1bcd08fa25175d3 (patch)
treeec6174abd3a21f8d803d26267f9c03ddc468746e /src/stable/random.h
parentce793e31f387c0715fa5b50c20e06510cc3e95ff (diff)
downloadlibbu++-20ee81a7b2d44ec985e99b4ee1bcd08fa25175d3.tar.gz
libbu++-20ee81a7b2d44ec985e99b4ee1bcd08fa25175d3.tar.bz2
libbu++-20ee81a7b2d44ec985e99b4ee1bcd08fa25175d3.tar.xz
libbu++-20ee81a7b2d44ec985e99b4ee1bcd08fa25175d3.zip
We have a nice selection of basic randomness functions now.
Diffstat (limited to '')
-rw-r--r--src/stable/random.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stable/random.h b/src/stable/random.h
index ba26f21..43b8917 100644
--- a/src/stable/random.h
+++ b/src/stable/random.h
@@ -44,8 +44,11 @@ namespace Bu
44 44
45 RandomBase &getGenerator() { return *pGen; } 45 RandomBase &getGenerator() { return *pGen; }
46 46
47 static int32_t rand();
48 static void seed( int32_t iSeed ); 47 static void seed( int32_t iSeed );
48 static int32_t rand();
49 static int32_t rand( int32_t iMax );
50 static int32_t rand( int32_t iMin, int32_t iMax );
51 static double randNorm();
49 52
50 private: 53 private:
51 void checkInit(); 54 void checkInit();