Tribot-Scripting-SDK
/
org.tribot.script.sdk.antiban
/
PlayerPreferences
/
Generator
Generator
public class
Generator
Content copied to clipboard
Class to assist with generating unique player-specific preferences
Functions
Properties
Functions
getRandom
Link copied to clipboard
Random
getRandom
()
Content copied to clipboard
Creates a new
Random
seeded with this seed
getSeed
Link copied to clipboard
long
getSeed
()
Content copied to clipboard
normal
Link copied to clipboard
double
normal
(double min, double max, double mean, double sd)
Content copied to clipboard
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)
Content copied to clipboard
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)
Content copied to clipboard
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)
Content copied to clipboard
Randomly generates a value uniformly distributed in the range of [min, max]
int
uniform
(int min, int max)
Content copied to clipboard
Randomly generates a value uniformly distributed in the range of [min, max]
long
uniform
(long min, long max)
Content copied to clipboard
Randomly generates a value uniformly distributed in the range of [min, max]
Properties
seed
Link copied to clipboard
private final long
seed
Content copied to clipboard
The generator seed (a combination of the in-game account and preference key)