Itasca C++ Interface
Loading...
Searching...
No Matches
irandom.h
Go to the documentation of this file.
1#pragma once
2
3#include "base/src/base.h"
4
10namespace itasca {
13 class IRandom {
14 public:
15
18 virtual double gauss()=0;
19
21 virtual double uniform()=0;
22
24 virtual void setSeed(int32 i)=0;
25 };
26} // namespace itasca
27// EoF
One stop include for all objects defined as part of base interface.
Interface to the random number generator.
Definition irandom.h:13
virtual void setSeed(int32 i)=0
Sets the random number "seed". If i=0 then uses the default seed.
virtual double uniform()=0
Returns a value between 0.0 and 1.0 using a uniform distribution.
virtual double gauss()=0
namespace Itasca
Definition basememory.cpp:10