Kea  1.9.9-git
isc::util::random::UniformRandomIntegerGenerator Class Reference

Uniform random integer generator. More...

#include <random_number_generator.h>

Public Member Functions

 UniformRandomIntegerGenerator (int min, int max)
 Constructor. More...
int operator() ()
 Generate uniformly distributed integer. More...

Detailed Description

Uniform random integer generator.

Generate uniformly distributed integers in range of [min, max]

Definition at line 52 of file random_number_generator.h.

Constructor & Destructor Documentation

isc::util::random::UniformRandomIntegerGenerator::UniformRandomIntegerGenerator ( int  min,
int  max 


minThe minimum number in the range
maxThe maximum number in the range

Definition at line 58 of file random_number_generator.h.

References isc_throw.

Member Function Documentation

int isc::util::random::UniformRandomIntegerGenerator::operator() ( )

Generate uniformly distributed integer.

Definition at line 75 of file random_number_generator.h.

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