 | RandomNumberGeneratorReset Method (Int32) |
Resets the random number generator with the specified seed.
Namespace:
CenterSpace.NMath.Core
Assembly:
NMath (in NMath.dll) Version: 7.4
Syntaxpublic virtual bool Reset(
int seed
)
Public Overridable Function Reset (
seed As Integer
) As Boolean
public:
virtual bool Reset(
int seed
)
abstract Reset :
seed : int -> bool
override Reset :
seed : int -> bool
Parameters
- seed
- Type: SystemInt32
The seed to reset the generator with.
Return Value
Type:
Booleantrue if successful
RemarksThis 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,
See Also