Random Character Generator
<p>How do I make this random values appear when I press a button?</p>

<pre><code>//random gender         
    List&lt;String&gt; Genderlist = new ArrayList&lt;&gt;();
        Genderlist.add("Gender: Male");
        Genderlist.add("Gender: Female");
            String randomGender = Genderlist.get(new Random().nextInt(Genderlist.size()));
                System.out.println(" Your "+ randomGender); 

         // random class       
    List&lt;String&gt; classlist = new ArrayList&lt;&gt;(); 
            classlist.add("Class: Fighter");
            classlist.add("Class: Rogue");
            classlist.add("Class: Cleric");
            classlist.add("Class: Mage");
            classlist.add("Class: Druid");
            classlist.add("Class: Monk");
            classlist.add("Class: Paladin");
            classlist.add("Class: Ranger");
            classlist.add("Class: Sorcerer");
            classlist.add("Class: Warlock");
            classlist.add("Class: Wizard");
            classlist.add("Class: Barbarian");
            classlist.add("Class: Bard");
                String randomClass = classlist.get(new Random().nextInt(classlist.size()));
                System.out.println(" Your "+ randomClass); 
</code></pre>

<p>Whenever I run this I get it to work just fine, but now i want to incorporate a random generator button that runs this. any suggestions?</p>