IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
random_utils.h File Reference

Random number utility functions used by IMP. More...

#include <IMP/kernel_config.h>
#include <IMP/Vector.h>
#include <IMP/random.h>
#include "IMP/internal/random_number_generation_boost.h"
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_real_distribution.hpp>
Include dependency graph for random_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IMP
 Base functionality and abstract base classes for representation, scoring and sampling.

Functions

double IMP::get_random_double_uniform ()
 Return a uniformly distributed double number in range [0..1).
double IMP::get_random_double_uniform (double min, double max)
 Return a uniformly distributed double number in range [min..max).
float IMP::get_random_float_uniform ()
 Return a uniformly distributed float number in range [0..1).
float IMP::get_random_float_uniform (float min, float max)
 Return a uniformly distributed float number in range [min..max).
template<typename RealType>
void IMP::get_random_numbers_normal (Vector< RealType > &v, unsigned int n, RealType mean=0.0, RealType stddev=1.0)
 Fill the double array with random normally distributed values.
template<typename RealType>
void IMP::get_random_numbers_uniform (Vector< RealType > &v, unsigned int n)
 Fill the float array with random uniformly distributed values.

Detailed Description

Random number utility functions used by IMP.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file random_utils.h.