Image Component Library (ICL)
Public Member Functions | Private Attributes | List of all members
icl::utils::URandI Class Reference

lightweight Random generator class for uniform random distributions in positive integer domain More...

#include <Random.h>

Public Member Functions

 URandI (unsigned int max)
 Create with given max value. More...
 
 operator unsigned int () const
 returns random(this->max) More...
 

Private Attributes

unsigned int max
 

Detailed Description

lightweight Random generator class for uniform random distributions in positive integer domain

See also
URand

Constructor & Destructor Documentation

◆ URandI()

icl::utils::URandI::URandI ( unsigned int  max)
inline

Create with given max value.

Member Function Documentation

◆ operator unsigned int()

icl::utils::URandI::operator unsigned int ( ) const
inline

returns random(this->max)

Member Data Documentation

◆ max

unsigned int icl::utils::URandI::max
private

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