Itasca C++ Interface
Toggle main menu visibility
Loading...
Searching...
No Matches
irandom.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
base/src/base.h
"
4
9
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
(int32 i)=0;
25
27
virtual
int
seed
()
const
= 0;
28
};
29
}
// namespace itasca
30
// EoF
base.h
One stop include for all objects defined as part of base interface.
itasca::IRandom
Interface to the random number generator.
Definition
irandom.h:13
itasca::IRandom::setSeed
virtual void setSeed(int32 i)=0
Sets the random number "seed". If i=0 then uses the default seed.
itasca::IRandom::seed
virtual int seed() const =0
Get current seed.
itasca::IRandom::uniform
virtual double uniform()=0
Returns a value between 0.0 and 1.0 using a uniform distribution.
itasca::IRandom::gauss
virtual double gauss()=0
itasca
namespace Itasca
Definition
basememory.cpp:14
common
module
interface
irandom.h
Generated by
1.18.0