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 ContextAction
Context action of therandom
operator.static final ContextAction
Context action of theuniformboolean
operator.static final ContextAction
Context action of theuniformdeviate
operator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpsyNormalDeviate
(PsyRealNumeric oRealNumeric) void
psySetSeed
(PsyInteger oSeed) Sets the seed of thisrandom
generator.psyUniformDeviate
(PsyRealNumeric oRealNumeric) 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
-
Field Details
-
PSY_RANDOM
Context action of therandom
operator. -
PSY_RANDOMBOOLEAN
Context action of theuniformboolean
operator. -
PSY_UNIFORMDEVIATE
Context action of theuniformdeviate
operator.
-
-
Constructor Details
-
PsyRandom
public PsyRandom()
-
-
Method Details
-
psySetSeed
Sets the seed of thisrandom
generator.- Parameters:
oSeed
- the given seed.
-
psyUniformDeviate
public PsyRealNumeric psyUniformDeviate(PsyRealNumeric oRealNumeric) throws PsyRangeCheckException, PsyTypeCheckException -
psyUniformBoolean
-
psyNormalDeviate
-