org.jaga.util
Class DefaultRandomGenerator
java.lang.Object
java.util.Random
org.jaga.util.DefaultRandomGenerator
- All Implemented Interfaces:
- RandomGenerator, java.io.Serializable
- public class DefaultRandomGenerator
- extends java.util.Random
- implements RandomGenerator
TODO: Complete these comments.
Project: JAGA - Java API for Genetic Algorithms.
Company: University College London and JAGA.Org
(http://www.jaga.org).
Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ONLY if you include a note of the original
author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see http://www.gnu.org/licenses/gpl.html
- Version:
- JAGA public release 1.0 beta
- Author:
- Greg Paperin (greg@jaga.org)
- See Also:
- Serialized Form
|
Method Summary |
byte |
nextByte()
|
byte |
nextByte(byte minInclusive,
byte maxExclusive)
|
double |
nextDouble(double minInclusive,
double maxExclusive)
|
float |
nextFloat(float minInclusive,
float maxExclusive)
|
double |
nextGaussian(double mean,
double stdDev)
|
int |
nextInt(int minInclusive,
int maxExclusive)
|
long |
nextLong(long minInclusive,
long maxExclusive)
|
| Methods inherited from class java.util.Random |
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRandomGenerator
public DefaultRandomGenerator()
DefaultRandomGenerator
public DefaultRandomGenerator(long seed)
nextByte
public byte nextByte()
- Specified by:
nextByte in interface RandomGenerator
nextByte
public byte nextByte(byte minInclusive,
byte maxExclusive)
- Specified by:
nextByte in interface RandomGenerator
nextInt
public int nextInt(int minInclusive,
int maxExclusive)
- Specified by:
nextInt in interface RandomGenerator
nextLong
public long nextLong(long minInclusive,
long maxExclusive)
- Specified by:
nextLong in interface RandomGenerator
nextFloat
public float nextFloat(float minInclusive,
float maxExclusive)
- Specified by:
nextFloat in interface RandomGenerator
nextDouble
public double nextDouble(double minInclusive,
double maxExclusive)
- Specified by:
nextDouble in interface RandomGenerator
nextGaussian
public double nextGaussian(double mean,
double stdDev)
- Specified by:
nextGaussian in interface RandomGenerator
Go to JAGA Homepage