java.util.Random zero argument enquiry
- by deerb
I am trying to code a game following instructions contained in an OU TMA document which read:
In the constructor, write code to assign a new instance of Random to ran which you should create using the Random class's zero argument constructor
Will this code work?
Random ran = new Random(0) ;
I am a relative newbie to Java, and I don't understand exactly what the instructions mean