So I'm trying to create a password generator, this is part of my code. This part of the code basically say that if the user pick "1", the generator would generate a password base on the user input of length "passLength", now for the next part, I need to put lowercase and uppercase random letter for option "2". Uppercase letter are from 65 to 90 ( in ASCII Code) and lowercase are from 97 to 122. How do I make it so the random method generate both ASCII from 65-90 and from 97 to 122? Do I just put int randomLower = (int) ((Math.random()*(25)+(97)) && ((Math.random()*(25)+(65)))? << I try this but it don't seem to be compiling. Thanks
***If my question is confusing, what I am trying to ask is how do I make Java generate random ASCII of only lowercase and upper case letter ( A-Z and a-z)
I have no idea how to make the code to generate both lowercase and uppcase letter. Instead of putting int randomLower = (int)((Math.random()*(25))+(97)); , I try to put (int) ((Math.random()*(25)+(97)) && ((Math.random()*(25)+(65))) but I that just my guess but when I put it into the code, it just say ")" missing even though I put one. In all, I have no idea how to generate random ASCII of uppercase and lowercase letter.