XOR128 pseudo-random number generator. Based on the implementation by WizCorp.
Check the docs here: lorossi.github.io/js-XOR128/.
Download here the last version.
To run the tests:
- clone the repository
- host the
testfolder with a web server - open the
index.htmlfile in a browser - tests will be run automatically via Mocha
There are two categories of tests:
- unit tests, to test the single methods and the instantiation of the class
- randomness tests, to test the randomness of the generated numbers
The randomness test performed are:
- Chi-square test
- Kolmogorov-Smirnov test
- Bernoulli test
All with a confidence threshold of 0.05. This does not ensure that the generator is truly random, but it is a good indicator.
This project is distributed under MIT license.
The testing framework used is Mocha.
The documentation is generated with JSDoc.