Jafaran (Java Fast Random) provides fast, and for some more random, implementations of java.util.Random, with additional nextXXX() methods, and methods to retrieve and restore state.

The names of implementations contain "Conc" (for concurrent) if they are thread-safe and non-blocking, or "Seq" (for sequential) if they are not thread-safe.

Also provides an implementation of Ziggurat algorithm (based on J. A. Doornik paper, 2005), used by nextGaussian() methods of the provided implementations.

Requires Java 5 or later.

Also available on github since 2015/12/13:
https://github.com/jeffhain/jafaran


Principal classes:

- Implementations using Mersenne-Twister algorithm (good pseudo-randomness):
MTSyncRNG
MTSeqRNG

- Implementations using Marsaglia Xor-Shift (fast):
MXSIntSeqRNG (32 bits)
MXSLongSeqRNG (64 bits) (nextLong() faster, larger period)

- Ziggurat: Random-based implementation of Ziggurat algorithm.

Project Activity

See All Activity >

License

Apache License V2.0

Follow Jafaran

Jafaran Web Site

Other Useful Business Software
Passwordless Authentication and Passwordless Security Icon
Passwordless Authentication and Passwordless Security

Identity is everything. Protect it with Duo.

It’s no secret — passwords can be a real headache, both for the people who use them and the people who manage them. Over time, we’ve created hundreds of passwords, it’s easy to lose track of them and they’re easily compromised. Fortunately, passwordless authentication is becoming a feasible reality for many businesses. Duo can help you get there.
Get a Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Jafaran!

Additional Project Details

Intended Audience

Science/Research, Developers

Programming Language

Java

Related Categories

Java Algorithms, Java Mathematics Software, Java Libraries

Registered

2014-04-27