Code example for Random

 *  <name of fault location> might be represented by a short classname 
 *  or otherwise. This decision is left up to the discretion of aspects 
 *  developer, but has to be consistent through the code  
public class ProbabilityModel { 
  private static Random generator = new Random();
  private static final Log LOG = LogFactory.getLog(ProbabilityModel.class);
  static final String FPROB_NAME = "fi.";
  private static final String ALL_PROBABILITIES = FPROB_NAME + "*";
  private static final float DEFAULT_PROB = 0.00f; //Default probability is 0%
  private static final float MAX_PROB = 1.00f; // Max probability is 100%
  private static Configuration conf = FiConfig.getConfig();
  static { 
    // Set new default probability if specified through a 
    // If neither is specified set default probability to DEFAULT_PROB  
            conf.get(ALL_PROBABILITIES, Float.toString(DEFAULT_PROB))));