Mantid
Loading...
Searching...
No Matches
PseudoRandomNumberGenerator.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7//-------------------------------------------------------------------
8// Includes
9//-------------------------------------------------------------------
11
12namespace Mantid::Kernel {
13
16
22} // namespace Mantid::Kernel
This class defines an interface for N dimensional random number generators.
void cacheGeneratedValue(const size_t index, const double value)
Cache a value for a given dimension index, i.e. 0->ND-1.
virtual double nextValue()=0
Return the next double in the sequence.
void generateNextPoint() override
Generates the next point.
PseudoRandomNumberGenerator()
Default constructor setting the dimension to 1.