Resets the random number generator with the specified seed.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public virtual bool Reset( int seed ) |
| Visual Basic (Declaration) |
|---|
Public Overridable Function Reset ( _ seed As Integer _ ) As Boolean |
| Visual C++ |
|---|
public: virtual bool Reset( int seed ) |
Parameters
- seed
- Type: System..::.Int32
The seed to reset the generator with.
Return Value
true if successful
Remarks
This method will succeed only if the following conditions are
met:
1. The uniform generator delegate is an instance method, i.e. the Target
property of the Delegate class returns a non-null reference.
2. The object reference thus obtained has a method named Initialize that
returns void and takes a single integer argument for the Initialize
method,