Liste des Groupes | Revenir à cl forth |
On 9/9/24 03:55, Anton Ertl wrote:...mhx@iae.nl (mhx) writes:...On Mon, 9 Sep 2024 6:55:49 +0000, Lars Brinkhoff wrote:
>
[..]I would like to recommend Marsaglia's newer and better xorshift family
of PRNGs, and preferably the further development by Sebastiano Vigna
called xoroshiro. The output (with suitable parameters) is very good*,
yet the implementation is very simple.Having better randomness at the same speed or better speed withSupposedly "good" PRNGs give large errors compared to theoretical values for some physics simulations. These errors have been studied for a 2D Ising model of ferromagnetism at the phase transition temperature, T = T_c (transition from ordered spins to disordered spins).
similar randomness is also relevant outside cryptographic
applications.
>
Ref. [1] shows that a simple 32-bit congruential generator (CONG) gave more accurate answers for the average energy <E> and specific heat <C> of the model lattice in Monte-Carlo simulations than the supposedly superior R250 XOR based shift register generator or a subtract with carry generator (SWC) -- incidentally, the R250 generator is included in the FSL. All other things being the same for the simulations, the following errors (in std deviations) were observed with the different PRNGs:
PRNG error in <E> error in <C>
CONG -0.31 0.82
R250 42.09 -107.16
SWC -16.95 32.81
Les messages affichés proviennent d'usenet.