Designing Methods
Assignment 3 notes
import java.util.Random;then define field:
Random RAND = new Random();then define a method:
// produce a random number in the range [0, 5) int randomNum(){ return this.RAND.nextInt() % 5; }and use it when you need such number. Adjust this to fit your game design.
Due Date: Thursday October 1st, 10:00 pm.