state = Xorshift64star.initialState(localSeed, globalSeed, p);
Generates the initial state vector state for the Xorshift64star random number generator (= xorshift64* algorithm), from two Integer numbers given as input (arguments localSeed, globalSeed). Any Integer numbers can be given (including zero or negative number). The function returns a reasonable initial state vector with the following strategy:
If both input arguments are zero, a fixed non-zero value is used
internally for localSeed. According to xorshift.pdf,
the xorshift64* random number generator generates statistically
random numbers from a bad seed within one iteration. To be on the
safe side, actually 5 random numbers are generated and the returned
state is the one from the last iteration. The number of iterations
can be modified by input p.
parameter Integer localSeed; parameter Integer globalSeed; Integer state[Xorshift64star.nState]; initial equation state = initialState(localSeed, globalSeed);
Random.Generators.Xorshift64star.random.
| Date | Description | ||
|---|---|---|---|
| June 22, 2015 |
|