Usage:Code:public static int randomChest[] = {708, 4710, 4712, 4714, 4716, 4718, 4720, 4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738}; public static int getRandomChest() { return randomChest[(int)(Math.random()*randomChest.length)]; }
Code:Engine.playerItems.addItem(p, getRandomChest(), 1);