Documentation of 'org.encog.mathutil.randomize.generate.AbstractGenerateRandom' Java class
AbstractGenerateRandom
org.encog.mathutil.randomize.generate

Class AbstractGenerateRandom

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double nextDouble(double high)
      The next random double up to a non-inclusive range.
      double nextDouble(double low, double high)
      The next double between low (inclusive) and high (exclusive).
      int nextInt(int range)
      The next random int up to a non-inclusive range.
      int nextInt(int low, int high)
      The next int between low (inclusive) and high (exclusive).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractGenerateRandom

        public AbstractGenerateRandom()
    • Method Detail

      • nextInt

        public int nextInt(int low,
                           int high)
        The next int between low (inclusive) and high (exclusive).
        Specified by:
        nextInt in interface GenerateRandom
        Parameters:
        low - The inclusive low value.
        high - The exclusive high value.
        Returns:
        The result.
      • nextDouble

        public double nextDouble(double high)
        The next random double up to a non-inclusive range.
        Specified by:
        nextDouble in interface GenerateRandom
        Parameters:
        high - The highest desired value.
        Returns:
        The result.
      • nextDouble

        public double nextDouble(double low,
                                 double high)
        The next double between low (inclusive) and high (exclusive).
        Specified by:
        nextDouble in interface GenerateRandom
        Parameters:
        low - The inclusive low value.
        high - The exclusive high value.
        Returns:
        The result.
      • nextInt

        public int nextInt(int range)
        The next random int up to a non-inclusive range.
        Specified by:
        nextInt in interface GenerateRandom
        Parameters:
        range - The highest desired value.
        Returns:
        The result.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.