Package coneforest.psylla.core
Class PsyRandom
- java.lang.Object
-
- coneforest.psylla.core.PsyRandom
-
- All Implemented Interfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
public class PsyRandom extends Object implements PsyObject
A representation ofrandom, a generator of pseudorandom objects.
-
-
Constructor Summary
Constructors Constructor Description PsyRandom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsyRealpsyNormalDeviate(PsyRealNumeric oNumeric)voidpsySetSeed(PsyInteger oSeed)Sets the seed of thisrandomgenerator.PsyBooleanpsyUniformBoolean()PsyRealNumericpsyUniformDeviate(PsyRealNumeric oNumeric)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Method Detail
-
psySetSeed
public void psySetSeed(PsyInteger oSeed)
Sets the seed of thisrandomgenerator.- Parameters:
oSeed- the given seed.
-
psyUniformDeviate
public PsyRealNumeric psyUniformDeviate(PsyRealNumeric oNumeric) throws PsyErrorException
- Throws:
PsyErrorException
-
psyUniformBoolean
public PsyBoolean psyUniformBoolean()
-
psyNormalDeviate
public PsyReal psyNormalDeviate(PsyRealNumeric oNumeric)
-
-