File: random.h

package info (click to toggle)
enemylines3 1.25-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,448 kB
  • sloc: cpp: 16,314; makefile: 26
file content (38 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (6)
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