RandomActuator(Actuator)

base classes — bpy_struct, Actuator

class bpy.types.RandomActuator(Actuator)
chance

Pick a number between 0 and 1, success if it’s 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 “”, (never None)
seed

Initial seed of the random generator, use Python for more freedom (choose 0 for not random)

Type:int in [0, 500000], 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