Game Python Reference Manual.
[blender.git] / source / gameengine / PyDoc / SCA_RandomSensor.py
1 # Documentation for SCA_RandomSensor
2 from SCA_ISensor import *
3
4 class SCA_RandomSensor(SCA_ISensor):
5         """
6         This sensor activates randomly.
7         """
8         
9         def setSeed(seed):
10                 """
11                 Sets the seed of the random number generator.
12                 
13                 If the seed is 0, the generator will produce the same value on every call.
14                 
15                 @type seed: integer.
16                 """
17         def getSeed():
18                 """
19                 Returns the initial seed of the generator.  Equal seeds produce equal random
20                 series.
21                 
22                 @rtype: integer
23                 """
24         def getLastDraw():
25                 """
26                 Returns the last random number generated.
27                 """