Top Description Fields Constructors Methods
com.carrotsearch.hppc

public Class XorShift128P

extends Object
Class Inheritance
Imports
java.util.Random

A fast pseudo-random number generator. For simplicity, we do not implement all of Random methods.
See Also
https://xorshift.di.unimi.it/, https://xorshift.di.unimi.it/xorshift128plus.c

Field Summary

Modifier and TypeField and Description
private long
private long

Constructor Summary

AccessConstructor and Description
public
XorShift128P(long seed)

public

Method Summary

Modifier and TypeMethod and Description
public int
public int
nextInt(int bound)

public long
private static long
notZero(long value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

state0back to summary
private long state0
state1back to summary
private long state1

Constructor Detail

XorShift128Pback to summary
public XorShift128P(long seed)
XorShift128Pback to summary
public XorShift128P()

Method Detail

nextIntback to summary
public int nextInt()
nextIntback to summary
public int nextInt(int bound)
nextLongback to summary
public long nextLong()
notZeroback to summary
private static long notZero(long value)