base class — SCA_IActuator
Random Actuator
Seed of the random number generator.
| Type: | integer. |
|---|
Equal seeds produce equal series. If the seed is 0, the generator will produce the same value on every call.
the first parameter of the active distribution.
| Type: | float, read-only. |
|---|
Refer to the documentation of the generator types for the meaning of this value.
the second parameter of the active distribution.
| Type: | float, read-only |
|---|
Refer to the documentation of the generator types for the meaning of this value.
Distribution type. (read-only). Can be one of these constants
| Type: | integer |
|---|
the name of the property to set with the random value.
| Type: | string |
|---|
If the generator and property types do not match, the assignment is ignored.
Sets this generator to produce a constant boolean value.
| Parameters: | value (boolean) – The value to return. |
|---|
Sets this generator to produce a uniform boolean distribution.
The generator will generate True or False with 50% chance.
Sets this generator to produce a Bernouilli distribution.
| Parameters: | value (float) – Specifies the proportion of False values to produce.
|
|---|
Sets this generator to always produce the given value.
| Parameters: | value (integer) – the value this generator produces. |
|---|
Sets this generator to produce a random value between the given lower and upper bounds (inclusive).
Generate a Poisson-distributed number.
This performs a series of Bernouilli tests with parameter value. It returns the number of tries needed to achieve succes.
Always generate the given value.
Generates a random float between lower_bound and upper_bound with a uniform distribution.
Generates a random float from the given normal distribution.
| Parameters: |
|
|---|
Generate negative-exponentially distributed numbers.
The half-life ‘time’ is characterized by half_life.