Generator

public class Generator

Class to assist with generating unique player-specific preferences

Functions

getRandom
Link copied to clipboard
Random getRandom()
Creates a new Random seeded with this seed
getSeed
Link copied to clipboard
long getSeed()
normal
Link copied to clipboard
double normal(double min, double max, double mean, double sd)
Randomly generates a value normally distributed in the range of [min, max] with the specified mean and standard deviation
int normal(int min, int max, int mean, int sd)
Randomly generates a value normally distributed in the range of [min, max] with the specified mean and standard deviation
long normal(long min, long max, long mean, long sd)
Randomly generates a value normally distributed in the range of [min, max] with the specified mean and standard deviation
uniform
Link copied to clipboard
double uniform(double min, double max)
Randomly generates a value uniformly distributed in the range of [min, max]
int uniform(int min, int max)
Randomly generates a value uniformly distributed in the range of [min, max]
long uniform(long min, long max)
Randomly generates a value uniformly distributed in the range of [min, max]

Properties

seed
Link copied to clipboard
private final long seed
The generator seed (a combination of the in-game account and preference key)