There are 2 constructors of Random
class
public Random()
public Random(long seed)
The description fo
I wonder whether what you want to ask is about distinguishing the default constructor and argument constructor. When you instantiate a new Random object, you can code this:
Random random=new Random();
In this way, we invoke the default constructor, i.e no argument constructor. But if you code this:
Random random=new Random(47);
we invoke a constructor which argument is 47.
It is similar to C
language; a seed will "randomly" create a number if you use the same seed and no matter when it will not change. But if you choose the first method, the number will modify once running!