public class Random
extends java.lang.Object
Constructor and Description |
---|
Random() |
Modifier and Type | Method and Description |
---|---|
static int |
between(int min,
int max)
Randomizes a number between minimum and maximum
|
static boolean |
containsId(int id,
int... ids) |
static boolean |
containsString(java.lang.String str,
java.lang.String... strs) |
static net.runelite.api.Point |
getRandomClickPoint(int widgetX,
int widgetY,
int widgetWidth,
int widgetHeight) |
static net.runelite.api.Point |
getRandomClickPoint(int widgetX,
int widgetY,
int widgetWidth,
int widgetHeight,
int closeGap) |
static net.runelite.api.Point |
getRandomClickPoint(int widgetX,
int widgetY,
int widgetWidth,
int widgetHeight,
int closeGap,
boolean convex) |
static net.runelite.api.Point |
getRandomClickPoint(java.awt.geom.Rectangle2D shape) |
static boolean |
isNumeric(java.lang.String str) |
static int |
nextInt(int max) |
static int |
nextInt(int min,
int max) |
static int |
random(int min,
int max,
int sd) |
public static net.runelite.api.Point getRandomClickPoint(java.awt.geom.Rectangle2D shape)
public static net.runelite.api.Point getRandomClickPoint(int widgetX, int widgetY, int widgetWidth, int widgetHeight)
public static net.runelite.api.Point getRandomClickPoint(int widgetX, int widgetY, int widgetWidth, int widgetHeight, int closeGap)
public static net.runelite.api.Point getRandomClickPoint(int widgetX, int widgetY, int widgetWidth, int widgetHeight, int closeGap, boolean convex)
public static int between(int min, int max)
min
- max
- public static boolean containsString(java.lang.String str, java.lang.String... strs)
str
- strs
- public static boolean containsId(int id, int... ids)
id
- ids
- public static int nextInt(int max)
public static int nextInt(int min, int max)
public static int random(int min, int max, int sd)
public static boolean isNumeric(java.lang.String str)