java.util.Random zero argument enquiry

Posted by deerb on Stack Overflow See other posts from Stack Overflow or by deerb
Published on 2010-05-23T07:21:21Z Indexed on 2010/05/23 7:30 UTC
Read the original article Hit count: 156

Filed under:

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

© Stack Overflow or respective owner

Related posts about java