Represents a generalized feedback shift register
pseudo-random number generator.
SystemObject SystemRandom Extreme.Mathematics.RandomExtendedRandom Extreme.Mathematics.RandomRandomWordGenerator Extreme.Mathematics.RandomGfsrGenerator
Namespace:
Extreme.Mathematics.Random
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
[SerializableAttribute]
public sealed class GfsrGenerator : RandomWordGenerator
<SerializableAttribute>
Public NotInheritable Class GfsrGenerator
Inherits RandomWordGenerator
[SerializableAttribute]
public ref class GfsrGenerator sealed : public RandomWordGenerator
[<SealedAttribute>]
[<SerializableAttribute>]
type GfsrGenerator =
class
inherit RandomWordGenerator
end
The GfsrGenerator type exposes the following members.
| Name | Description |
---|
 | GfsrGenerator |
Initializes a new instance of the GfsrGenerator class
using a time-dependent default seed value.
|
 | GfsrGenerator(Int32) |
Initializes a new instance of the GfsrGenerator class
using the specified seed value.
|
 | GfsrGenerator(Int32) |
Initializes a new instance of the GfsrGenerator class
using the specified seed array of seed values.
|
Top
Top
| Name | Description |
---|
 | AsParallel |
Returns a thread-safe version of this random number generator.
(Defined by RandomExtensions.) |
 | CorrelatedSamples |
Generates a series of random variables with the specified correlation matrix.
(Defined by RandomExtensions.) |
 | Fill(IListDouble) | Overloaded.
Fills a Double array with random numbers.
(Defined by RandomExtensions.) |
 | Fill(IListInt32) | Overloaded.
Fills an Int32 array with random numbers.
(Defined by RandomExtensions.) |
 | Fill(Double, ContinuousDistribution) | Overloaded.
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(Int32, DiscreteDistribution) | Overloaded.
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(VectorDouble, ContinuousDistribution) | Overloaded.
Fills a vector with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(VectorDouble, DiscreteDistribution) | Overloaded.
Fills a vector with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(Double, Int32, Int32) | Overloaded.
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(IListDouble, Int32, Int32) | Overloaded.
Fills a Double array with random numbers.
(Defined by RandomExtensions.) |
 | Fill(IListInt32, Int32, Int32) | Overloaded.
Fills an Int32 array with random numbers.
(Defined by RandomExtensions.) |
 | Fill(Int32, Int32, Int32) | Overloaded.
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(Double, Int32, Int32, ContinuousDistribution) | Overloaded.
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | Fill(Int32, Int32, Int32, DiscreteDistribution) | Overloaded.
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions.) |
 | FillNormal(IListDouble) | Overloaded.
Fills a list with normal random numbers with zero mean and unit
standard deviation.
(Defined by RandomExtensions.) |
 | FillNormal(IListDouble, Int32, Int32) | Overloaded.
Fills a list with normal random numbers with zero mean and unit
standard deviation.
(Defined by RandomExtensions.) |
 | Next |
Returns a sample from the specified distribution.
(Defined by RandomExtensions.) |
 | NextDouble |
Returns a sample from the specified distribution.
(Defined by RandomExtensions.) |
Top
Use the GfsrGenerator class to represent a pseudo-this.random
number generator that uses a fourth order generalized feedback shift register algorithm.
This generalized feedback shift register generator has a very long period of
29689-1. Thanks to its simplicity, it is very fast. On the down side, the
start-up time is significant.
GfsrGenerator can be used in place of
the Random class to obtain
pseudo-random numbers of a higher quality.
Reference: Robert M. Ziff, "Four-tap shift-register-sequence
this.random-number generators," Computers in Physics 12(4),
Jul/Aug 1998, pp 385-392.
Reference