public class PasswordGeneration
{
public static void main(String[] args)
{
int PASSWORD_LENGTH = 10;
StringBuilder sb = new StringBuilder();
for (int x = 0; x < PASSWORD_LENGTH; x++)
{
sb.append((char)((int)(Math.random()*26)+97));
}
System.out.println(sb.toString());
}
}
No comments:
Post a Comment