Rudiments
randomnumber.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_RANDOMNUMBER_H
5#define RUDIMENTS_RANDOMNUMBER_H
6
7#include <rudiments/private/randomnumberincludes.h>
8
31class RUDIMENTS_DLLSPEC randomnumber : public object {
32 public:
33
36
39
42
49
54 bool generate(int32_t *result, int32_t lower, int32_t upper);
55
69 static uint32_t getSeed();
70
77
86 int32_t upper);
87
94 int32_t upper);
95
101
104 static bool getNeedsMutex();
105
109 static void setMutex(threadmutex *mtx);
110
111 #include <rudiments/private/randomnumber.h>
112};
113
114#endif
Definition avltree.h:11
Definition object.h:10
Definition randomnumber.h:31
static void setMutex(threadmutex *mtx)
static int32_t generate(uint32_t seed, int32_t lower, int32_t upper)
bool generate(uint32_t *result)
static uint32_t generate(uint32_t seed)
static uint32_t getRandMax()
static uint32_t getSeed()
bool setSeed(uint32_t seed)
static int32_t scale(uint32_t number, int32_t lower, int32_t upper)
static bool getNeedsMutex()
bool generate(int32_t *result, int32_t lower, int32_t upper)
Definition threadmutex.h:11