1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#ifndef __el3__random_h
#define __el3__random_h
#include <iostream>
#include <vector>
namespace el3 {
class Random {
public:
unsigned int get();
unsigned int get(unsigned int below);
unsigned int get(unsigned int above,unsigned int below);
std::vector <int> randomize(std::vector <int>);
bool boolean();
static int sget();
static int sget(unsigned int below);
static float sgetf();
static bool sboolean();
static int ssign();
static void sseed();
static void sseed(unsigned int s);
static Random *instance();
};
}
#endif
|