ARB
Classes | Functions | Variables
admath.cxx File Reference
#include <cmath>
#include <ctime>
#include <algorithm>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/uniform_real.hpp>
#include <boost/random/variate_generator.hpp>
#include "gb_local.h"
Include dependency graph for admath.cxx:

Go to the source code of this file.

Classes

class  RandomNumberGenerator
 

Functions

double GB_log_fak (int n)
 
void GB_random_seed (unsigned seed)
 
int GB_random (int range)
 

Variables

static RandomNumberGenerator gen (time(NULp))
 

Function Documentation

double GB_log_fak ( int  n)

Definition at line 21 of file admath.cxx.

References ARB_realloc(), gb_assert, max, and NULp.

Referenced by ap_calc_bootstrap_remark_sub().

void GB_random_seed ( unsigned  seed)

normally you should not use GB_random_seed. Use it only to reproduce some pseudo-random result (e.g. in unittests)

Definition at line 80 of file admath.cxx.

References gen, and RandomNumberGenerator::reseed().

int GB_random ( int  range)

Variable Documentation

RandomNumberGenerator gen(time(NULp))
static

Referenced by GB_random(), and GB_random_seed().