setBoolUniform
setBoolUniform()
Sets the generator to produce a uniform bool distribution.
A 50/50 chance to be True or False.
Sample Code
#get controller
controller = GameLogic.getCurrentController()
# get random actuator named act attached to the
controller
actRandom = controller.actuators["act"]
# 50/50 chance to be true or false.
actRandom.setBoolUniform()
|