public int genAleatorio(int a, int b){ int min = Math.min(a,b); int max = Math.max(a,b); return (int)(Math.random*(max-min+1)+min); }