~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/PyDoc/SCA_RandomSensor.py

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: SCA_RandomSensor.py,v 1.2 2004/05/30 11:09:46 kester Exp $
 
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
                """