Code example for Collection

Methods: size, toArray

0
	public static String convertLocationToString(Location l) {
		return l.getWorld().getName() + "/" + l.getX() + "/" + l.getY() + "/" + l.getZ() + "/" + l.getYaw() + "/" + l.getPitch();
	} 
 
	public static List getRandomFromList(Collection list) {
		return (List) list.toArray()[(int) (java.lang.Math.random() * (list.size() - 1))];
	} 
}