Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My fith program: Password Generator
#3
Code:
Random randomGen = new Random();
    private String randomizeInt() {
        int toInt = Integer.parseInt(jTextField4.getText());
        int randomIndex = randomGen.nextInt(toInt);
        String randomString = Integer.toString(randomIndex);
        return randomString;
    }

Code:
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
        jTextField5.setText(randomizeInt());
    }

Smile
My SMF Modifications:
http://anthony.vibrantvps.com/smf
Reply


Messages In This Thread
My fith program: Password Generator - by nevets04 - 11-30-2009, 06:39 PM
RE: My fith program: Password Generator - by Project Evolution - 11-30-2009, 07:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Java] Password Generator Version 3.0 CometJack 29 4,995 01-03-2012, 06:03 PM
Last Post: MineCrack
  Another Completly Nessacary Password Generator :D nevets04 10 2,276 05-03-2010, 01:50 AM
Last Post: JesusOfSuburbia
  Password Generator [Version 2] Project Evolution 9 2,073 03-13-2010, 10:45 PM
Last Post: Ⱳąŗɗ

Forum Jump:


Users browsing this thread: 2 Guest(s)