0 tambien es un numero valido

This commit is contained in:
PC de clase committed 2026-10-26 09:47:37 +01:00
1 parent d10caff96d
commit 96e2bed803
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ public class GeneradorContraseñas {
for(int i = 0; i < len; i++) {
switch (r.nextInt(3)) {
case 0: // Dígito
System.out.printf("%d", r.nextInt(9) + 1);
System.out.printf("%d", r.nextInt(10));
break;
case 1: // Minúscula
System.out.printf("%c", r.nextInt(26) + (int) ('a'));