Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
irandom.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base/src/base.h"
4 
10 namespace itasca {
13  class IRandom {
14  public:
15 
18  virtual Double gauss()=0;
19 
21  virtual Double uniform()=0;
22 
24  virtual void setSeed(Int i)=0;
25  };
26 } // namespace itasca
27 // EoF
virtual Double uniform()=0
Returns a value between 0.0 and 1.0 using a uniform distribution.
virtual void setSeed(Int i)=0
Sets the random number "seed". If i=0 then uses the default seed.
namespace Itasca
Definition: basememory.cpp:9
int Int
signed 32 bit
Definition: basedef.h:30
double Double
64 bit floating point
Definition: basedef.h:40
One stop include for all objects defined as part of base interface.
Interface to the random number generator.
Definition: irandom.h:13
virtual Double gauss()=0