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 of Ψ-random
, a generator of pseudorandom objects.
-
-
Constructor Summary
Constructors Constructor Description PsyRandom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsyReal
psyNormalDeviate(PsyRealNumeric oNumeric)
void
psySetSeed(PsyInteger oSeed)
Sets the seed of this random generator.PsyBoolean
psyUniformBoolean()
PsyRealNumeric
psyUniformDeviate(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 this random generator.- Parameters:
oSeed
- the given seed.
-
psyUniformDeviate
public PsyRealNumeric psyUniformDeviate(PsyRealNumeric oNumeric) throws PsyException
- Throws:
PsyException
-
psyUniformBoolean
public PsyBoolean psyUniformBoolean()
-
psyNormalDeviate
public PsyReal psyNormalDeviate(PsyRealNumeric oNumeric)
-
-