Skip to content

Ciebiada/Xorshift-in-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

A very good (fast) random number generator from Geroge Marsaglia.

Here's the paper: http://www.jstatsoft.org/v08/i14/paper

I just ported it to Java as it lacks usigned type, it's paper's xor128() equivalent (tested it).

At the end, the generated long is divided by max float to give you nice [0..1) number.

That is probably your best bet if you need a good and fast PRNG for some monte carlo or other statistical simulations, not for cryptography though.

About

Xorshift In java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages