RandomActuator(Actuator)

base classes — bpy_struct, Actuator

class bpy.types.RandomActuator(Actuator)

Actuator to ..

chance

Pick a number between 0 and 1. Success if you stay below this value

Type :float in [0, 1], default 0.0
distribution

Choose the type of distribution

Type :enum in [‘BOOL_CONSTANT’, ‘BOOL_UNIFORM’, ‘BOOL_BERNOUILLI’, ‘INT_CONSTANT’, ‘INT_UNIFORM’, ‘INT_POISSON’, ‘FLOAT_CONSTANT’, ‘FLOAT_UNIFORM’, ‘FLOAT_NORMAL’, ‘FLOAT_NEGATIVE_EXPONENTIAL’], default ‘BOOL_CONSTANT’
float_max

Choose a number from a range. Upper boundary of the range

Type :float in [-1000, 1000], default 0.0
float_mean

A normal distribution. Mean of the distribution

Type :float in [-1000, 1000], default 0.0
float_min

Choose a number from a range. Lower boundary of the range

Type :float in [-1000, 1000], default 0.0
float_value

Always return this number

Type :float in [0, 1], default 0.0
half_life_time

Negative exponential dropoff

Type :float in [-1000, 1000], default 0.0
int_max

Choose a number from a range. Upper boundary of the range

Type :int in [-1000, 1000], default 0
int_mean

Expected mean value of the distribution

Type :float in [0.01, 100], default 0.0
int_min

Choose a number from a range. Lower boundary of the range

Type :int in [-1000, 1000], default 0
int_value

Always return this number

Type :int in [-inf, inf], default 0
property

Assign the random value to this property

Type :string, default “”
seed

Initial seed of the random generator. Use Python for more freedom (choose 0 for not random)

Type :int in [0, 300000], default 0
standard_derivation

A normal distribution. Standard deviation of the distribution

Type :float in [-1000, 1000], default 0.0
use_always_true

Always false or always true

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

RadarSensor(Sensor)

Next topic

RandomSensor(Sensor)