Login Languish
Functions
random_utils.cpp File Reference

handles pseudo-random tasks More...

#include <random>
#include "random_utils.h"
Include dependency graph for random_utils.cpp:

Functions

int rand_utils::randomInt (int min, int max)
 retrieves a pseudo-random integer More...
 
size_t rand_utils::randomSizeT (size_t min, size_t max)
 retrieves a pseudo-random size_t More...
 
size_t rand_utils::randomSizeT (size_t max)
 retrieves a pseudo-random size_t More...
 

Detailed Description

handles pseudo-random tasks

Author
Cameron Bruce

Function Documentation

◆ randomInt()

int rand_utils::randomInt ( int  min,
int  max 
)

retrieves a pseudo-random integer

Parameters
minlower bound
maxupper bound
Returns
the random integer

◆ randomSizeT() [1/2]

size_t rand_utils::randomSizeT ( size_t  min,
size_t  max 
)

retrieves a pseudo-random size_t

Parameters
minlower bound
maxupper bound
Returns
the random size_t

◆ randomSizeT() [2/2]

size_t rand_utils::randomSizeT ( size_t  max)

retrieves a pseudo-random size_t

Parameters
maxupper bound
Returns
the random size_t