Example usage for java.util SplittableRandom SplittableRandom

List of usage examples for java.util SplittableRandom SplittableRandom

Introduction

In this page you can find the example usage for java.util SplittableRandom SplittableRandom.

Prototype

public SplittableRandom() 

Source Link

Document

Creates a new SplittableRandom instance that is likely to generate sequences of values that are statistically independent of those of any other instances in the current program; and may, and typically does, vary across program invocations.

Usage

From source file:bwem.example.MapPrinterExample.java

public MapPrinterExample(MapPrinter mapPrinter) {
    this.mapPrinter = mapPrinter;
    this.randomGenerator = new SplittableRandom();
}