https://github.com/sepppenner/linearcongruencegenerator
Linear Congruence Generator implementation in Java
https://github.com/sepppenner/linearcongruencegenerator
Last synced: over 1 year ago
JSON representation
Linear Congruence Generator implementation in Java
- Host: GitHub
- URL: https://github.com/sepppenner/linearcongruencegenerator
- Owner: SeppPenner
- License: mit
- Created: 2016-07-02T18:48:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-04T15:14:51.000Z (about 6 years ago)
- Last Synced: 2025-01-06T02:10:50.782Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: License.txt
Awesome Lists containing this project
README
# LinearCongruenceGenerator
A Linear Congruence Generator implementation in Java.
[](https://ci.appveyor.com/project/SeppPenner/linearcongruencegenerator)
[](https://github.com/SeppPenner/LinearCongruenceGenerator/issues)
[](https://github.com/SeppPenner/LinearCongruenceGenerator/network)
[](https://github.com/SeppPenner/LinearCongruenceGenerator/stargazers)
[](https://raw.githubusercontent.com/SeppPenner/LinearCongruenceGenerator/master/License.txt)
Link to the Linear Congruence Generator implementation in C#: https://github.com/SeppPenner/LinearCongruenceGeneratorC-/blob/master/README.md
## Basic usage:
```java
public class ExampleUsage {
private LinearCongruenceGenerator random = new LinearCongruenceGenerator(
(long) Math.pow(2,32), 1664525, 1013904223, 0);
}
```
See https://en.wikipedia.org/wiki/Linear_congruential_generator for good parameters.
Change history
--------------
See the [Changelog](https://github.com/SeppPenner/LinearCongruenceGenerator/blob/master/Changelog.md).