JRTPLIB  3.11.1
Public Member Functions | Static Public Member Functions | List of all members
jrtplib::RTPRandom Class Referenceabstract

Interface for generating random numbers. More...

#include <rtprandom.h>

Inheritance diagram for jrtplib::RTPRandom:
Inheritance graph
[legend]

Public Member Functions

virtual uint8_t GetRandom8 ()=0
 Returns a random eight bit value. More...
 
virtual uint16_t GetRandom16 ()=0
 Returns a random sixteen bit value. More...
 
virtual uint32_t GetRandom32 ()=0
 Returns a random thirty-two bit value. More...
 
virtual double GetRandomDouble ()=0
 Returns a random number between $0.0$ and $1.0$. More...
 
uint32_t PickSeed ()
 Can be used by subclasses to generate a seed for a random number generator. More...
 

Static Public Member Functions

static RTPRandomCreateDefaultRandomNumberGenerator ()
 Allocate a default random number generator based on your platform. More...
 

Detailed Description

Member Function Documentation

static RTPRandom* jrtplib::RTPRandom::CreateDefaultRandomNumberGenerator ( )
static
virtual uint16_t jrtplib::RTPRandom::GetRandom16 ( )
pure virtual
virtual uint32_t jrtplib::RTPRandom::GetRandom32 ( )
pure virtual
virtual uint8_t jrtplib::RTPRandom::GetRandom8 ( )
pure virtual
virtual double jrtplib::RTPRandom::GetRandomDouble ( )
pure virtual
uint32_t jrtplib::RTPRandom::PickSeed ( )

The documentation for this class was generated from the following file: