Module SCA_RandomSensor

Source Code for Module SCA_RandomSensor

 1  # $Id: SCA_RandomSensor.py 2607 2004-05-30 11:09:46Z kester $ 
 2  # Documentation for SCA_RandomSensor 
 3  from SCA_ISensor import * 
 4   
5 -class SCA_RandomSensor(SCA_ISensor):
6 """ 7 This sensor activates randomly. 8 """ 9
10 - def setSeed(seed):
11 """ 12 Sets the seed of the random number generator. 13 14 If the seed is 0, the generator will produce the same value on every call. 15 16 @type seed: integer. 17 """
18 - def getSeed():
19 """ 20 Returns the initial seed of the generator. Equal seeds produce equal random 21 series. 22 23 @rtype: integer 24 """
25 - def getLastDraw():
26 """ 27 Returns the last random number generated. 28 """
29