foobar2000 SDK
2015-08-03
|
#include <genrand.h>
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (genrand_service) | |
void | generate_random_order (t_size *out, t_size count) |
virtual unsigned | genrand (unsigned range)=0 |
double | genrand_f () |
virtual void | seed (unsigned val)=0 |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Static Public Member Functions | |
static service_ptr_t< genrand_service > | g_create () |
Additional Inherited Members | |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
PRNG service. Implemented by the core, do not reimplement. Use g_create() helper function to instantiate.
genrand_service::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | genrand_service | ) |
|
inlinestatic |
|
pure virtual |
Returns random value N, where 0 <= N < range.
|
inline |
|
pure virtual |
Seeds the PRNG with specified value.