public class

Random

extends Random
java.lang.Object
   ↳ java.util.Random
     ↳ uk.ac.imperial.presage2.core.util.random.Random

Class Overview

This is a wrapper for java.util.Random to provide static access to most of it's methods via a singleton, and to control the initial random seed.

Summary

Fields
public static long seed
Protected Constructors
Random()
Random(long seed)
Public Methods
synchronized static Random getInstance()
Get the instance of Random.
static double randomDouble()
Wrapper for nextDouble()
static int randomInt()
Wrapper for nextInt()
static int randomInt(int n)
Wrapper for nextInt(int)
static UUID randomUUID()
Wrapper for randomUUID()
[Expand]
Inherited Methods
From class java.util.Random
From class java.lang.Object

Fields

public static long seed

Protected Constructors

protected Random ()

protected Random (long seed)

Public Methods

public static synchronized Random getInstance ()

Get the instance of Random.

public static double randomDouble ()

Wrapper for nextDouble()

public static int randomInt ()

Wrapper for nextInt()

public static int randomInt (int n)

Wrapper for nextInt(int)

public static UUID randomUUID ()

Wrapper for randomUUID()