randomnumber.h
// Copyright (c) 1999-2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_RANDOMNUMBER_H
#define RUDIMENTS_RANDOMNUMBER_H
#include <rudiments/private/randomnumberincludes.h>
class RUDIMENTS_DLLSPEC randomnumber {
public:
static int32_t getSeed();
static int32_t generateNumber(int32_t seed);
static int32_t generateScaledNumber(int32_t seed,
int32_t lower,
int32_t upper);
static int32_t scaleNumber(int32_t number,
int32_t lower,
int32_t upper);
static int32_t getRandMax();
static bool needsMutex();
static void setMutex(threadmutex *mtx);
};
#endif