Argentum Online - Servidor
Referencia de la Clase RandomEventGenerator

Métodos públicos estáticos

static RandomEventGeneratorget_instance ()
 
static random_drop_t roll ()
 Devuelve un evento de forma random en base a las probabilidades provistas en el contructor. Más...
 
static uint16_t random_in (uint16_t min, uint16_t max)
 Devuelve un numero entero entre min y max. Más...
 
static unsigned int rand_idx_in_vec (unsigned int vec_size)
 Devuelve un indice random entre 0 y tamaño del vector-1. Más...
 

Documentación de las funciones miembro

◆ rand_idx_in_vec()

unsigned int RandomEventGenerator::rand_idx_in_vec ( unsigned int  vec_size)
static

Devuelve un indice random entre 0 y tamaño del vector-1.

Parámetros
vec_size
Devuelve
unsigned int

◆ random_in()

uint16_t RandomEventGenerator::random_in ( uint16_t  min,
uint16_t  max 
)
static

Devuelve un numero entero entre min y max.

Parámetros
min
max
Devuelve
uint16_t

◆ roll()

random_drop_t RandomEventGenerator::roll ( )
static

Devuelve un evento de forma random en base a las probabilidades provistas en el contructor.

Devuelve
random_drop_t

La documentación para esta clase fue generada a partir de los siguientes ficheros: