| Home | Trees | Indices | Help |
|
|---|
|
|
Generate a range of numbers from (number - variance) to (number + variance).
Example:
>>> gen = NumberVariance(None, 10, 5) >>> print gen.getValue() 5 >>> gen.next() >>> gen.getValue() 6 >>> gen.next() >>> gen.getValue() 7 >>> gen.next() >>> gen.getValue() 8 >>> gen.next() >>> gen.getValue() 9 >>> gen.next() >>> gen.getValue() 10 >>> gen.next() >>> gen.getValue() 11 >>> gen.next() >>> gen.getValue() 12 >>> gen.next() >>> gen.getValue() 13 >>> gen.next() >>> gen.getValue() 14 >>> gen.next() >>> gen.getValue() 15
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Min and max can be used to limit the produced numbers. When using a generator's value will be gotten on the first call to our .getRawValue/getValue methods that occur after a reset().
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Aug 16 12:17:05 2008 | http://epydoc.sourceforge.net |