MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Random;

public class MainClass {
    public static void main(String[] args) {
        Random diceValues = new Random();
        System.out.println(diceValues.nextInt(6));
        System.out.println(diceValues.nextInt(6));
    }
}