I have the following program:
import java.util.*;
import cern.jet.random.engine.MersenneTwister;
import cern.jet.random.engine.RandomEngine;
public class printy{
static RandomEngine val = new MersenneTwister( (int)System.currentTimeMillis() );
System.out.println(var.toString());
}
What is the range in var
? It is an integer of what size? Can it ever be 0?
According to the documentation, the seed cannot be 0, but the random INT could be zero. This is due to a (mathematical?) property of how the MersenneTwister is implied in Java?