java.lang.Object
coneforest.psylla.core.PsyRandom
- All Implemented Interfaces:
PsyObject
The representation of
random, a generator of pseudorandom objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of therandomoperator.static final ContextActionContext action of theuniformbooleanoperator.static final ContextActionContext action of theuniformdeviateoperator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpsyNormalDeviate(PsyRealNumeric oRealNumeric) voidpsySetSeed(PsyInteger oSeed) Sets the seed of thisrandomgenerator.psyUniformDeviate(PsyRealNumeric oRealNumeric) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_RANDOM
Context action of therandomoperator. -
PSY_RANDOMBOOLEAN
Context action of theuniformbooleanoperator. -
PSY_UNIFORMDEVIATE
Context action of theuniformdeviateoperator.
-
-
Constructor Details
-
PsyRandom
public PsyRandom()
-
-
Method Details
-
psySetSeed
Sets the seed of thisrandomgenerator.- Parameters:
oSeed- the given seed.
-
psyUniformDeviate
public PsyRealNumeric psyUniformDeviate(PsyRealNumeric oRealNumeric) throws PsyRangeCheckException, PsyTypeCheckException -
psyUniformBoolean
-
psyNormalDeviate
-