|
setSeed(seed)
DEPRECATED: use the seed property Sets the seed of the random number
generator. |
|
|
integer
|
getSeed()
DEPRECATED: use the seed property Returns the initial seed of the
generator. |
|
|
float
|
getPara1()
DEPRECATED: use the para1 property Returns the first parameter of the
active distribution. |
|
|
float
|
getPara2()
DEPRECATED: use the para2 property Returns the second parameter of
the active distribution. |
|
|
distribution type
|
getDistribution()
DEPRECATED: use the distribution property Returns the type of random
distribution. |
|
|
|
setProperty(property)
DEPRECATED: use the property property Set the property to which the
random value is assigned. |
|
|
string
|
getProperty()
DEPRECATED: use the property property Returns the name of the
property to set. |
|
|
|
setBoolConst(value)
Sets this generator to produce a constant boolean value. |
|
|
|
setBoolUniform()
Sets this generator to produce a uniform boolean distribution. |
|
|
|
|
|
setIntConst(value)
Sets this generator to always produce the given value. |
|
|
|
setIntUniform(lower_bound,
upper_bound)
Sets this generator to produce a random value between the given lower
and upper bounds (inclusive). |
|
|
|
|
|
|
|
setFloatUniform(lower_bound,
upper_bound)
Generates a random float between lower_bound and upper_bound with a
uniform distribution. |
|
|
|
setFloatNormal(mean,
standard_deviation)
Generates a random float from the given normal distribution. |
|
|
|
|
integer
|
|
KX_GameObject
|
|
|
|
integer, read-only
|
distribution
distribution type: KX_RANDOMACT_BOOL_CONST,
KX_RANDOMACT_BOOL_UNIFORM, KX_RANDOMACT_BOOL_BERNOUILLI,
KX_RANDOMACT_INT_CONST, KX_RANDOMACT_INT_UNIFORM,
KX_RANDOMACT_INT_POISSON, KX_RANDOMACT_FLOAT_CONST,
KX_RANDOMACT_FLOAT_UNIFORM, KX_RANDOMACT_FLOAT_NORMAL,
KX_RANDOMACT_FLOAT_NEGATIVE_EXPONENTIAL
|
int
|
executePriority
This determines the order controllers are evaluated, and actuators
are activated (lower priority is executed first).
(Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
|
KX_GameObject or None in exceptional cases.
|
owner
The game object this logic brick is attached to (read only).
(Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
|
float, read-only
|
para1
the first parameter of the active distribution.
|
float, read-only
|
para2
the second parameter of the active distribution.
|
string
|
property
the name of the property to set with the random value.
|
integer
|
seed
Seed of the random number generator.
|