Forums Register Login

random.nextInt + If statements

+Pie Number of slices to send: Send
I am creating a password generator/fake password hacker. Is there a better way to do this?

Thanks,
John Price aka cc11rocks
+Pie Number of slices to send: Send
 

john price wrote:I am creating a password generator/fake password hacker. Is there a better way to do this?

Thanks,
John Price aka cc11rocks



You seem to have a couple of bugs -- such as 22 is assigned to two letters, but I get the gist of what you are trying to do....

Try....



Henry
+Pie Number of slices to send: Send
It works perfect thanks! Could you please explain this:

Like I understand it but why is this possible? I see
"char = char1 + char2 - int"
Thanks,
cc11rocks aka John Price
+Pie Number of slices to send: Send
 

john price wrote:
Like I understand it but why is this possible? I see
"char = char1 + char2 - int"



Please take another look again. You'll see that it is something else, and it is valid.

Henry
+Pie Number of slices to send: Send
Thanks for your help. Here is the program I came up with:

I'm going to add more JRadioButtons (more password length options), but here it is. It is fully runnable. Thank you very much!
cc11rocks aka John Price
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1270 times.
Similar Threads
Game Programming Problem! J2ME
whats wrong with my code ?
Swap sublist of an arraylist with the sublist of another arraylist
Sudoku puzzle
Multi-threaded svn checkout
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:50:36.