Get Random Index
import android.graphics.Paint; class Main { public static int GetRandomIndex(int min, int max) { return (int) (Math.random() * (max - min + 1)) + min; } }