static int random(int from, int to){ var random = Random(); return random.nextInt((to+1) - from) + from; }