External Exam Download Resources Web Applications Games Recycle Bin

dice Roll



setup Form
Dice Roll jFrame Form
import Package
import java.util.Random;

btnRoll
Random seed = new Random();
int diceRoll = seed.nextInt(6)+1;
lblResult.setText(Integer.toString(diceRoll));