pyherc.test

class pyherc.test.StubModel

Simple stub to act as model and do nothing

class pyherc.test.StubRandomNumberGenerator

Stub for random number generator

Will always return same numbers

getstate()

Return an object capturing the current internal state of the generator. This object can be passed to setstate() to restore the state.

random()

Return the next random floating point number in the range [0.0, 1.0).

seed(seed=None)

Initialize the basic random number generator.

setstate(state)

state should have been obtained from a previous call to getstate() setstate() restores the internal state of the generator to what it was at the time setstate() was called.

Previous topic

pyherc.rules.utils

This Page