aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/random.h
blob: a91565be95a92bbba8ade470ca7e227e58605d88 (plain) (blame)
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
#ifndef NULLSOFT_WINAMP_RANDOM_H
#define NULLSOFT_WINAMP_RANDOM_H

#include "api_random.h"
#include <windows.h> // for DWORD


class Random : public api_random
{
public:
	static const char *getServiceName() { return "Random Number API"; }
	static const GUID getServiceGuid() { return randomApiGUID; }	
public:
	Random();
	RandomGenerator GetFunction();
	UnsignedRandomGenerator GetUnsignedFunction();
	int GetNumber();
	int GetPositiveNumber();
	float GetFloat(); // [0-1]
	float GetFloat_LessThanOne(); // [0-1)
	float GetFloat_LessThanOne_NotZero(); // (0-1)
	double GetDouble(); // [0-1)
protected:
	RECVS_DISPATCH;

	

};

#endif