Package org.jamesii.core.math.random.generators

Examples of org.jamesii.core.math.random.generators.IRandom.nextFloat()


    if (getUpperBound() == null) {
      setUpperBound(Float.MAX_VALUE / 2);
    }

    IRandom r1 = SimSystem.getRNGGenerator().getNextRNG();
    float rand1 = r1.nextFloat();

    setValue(getLowerBound() + (getUpperBound() - getLowerBound()) * rand1);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.