RandomGeneratorGuard.isRestored
- RandomGeneratorGuard.isRestored()
- Returns:
True if the state of the generator was already restored by this guard
- Return type:
bool
Example
import pyagrum as gum
guard = gum.RandomGeneratorGuard()
gum.initRandom(42)
guard.isRestored()
# False
guard.restore()
guard.isRestored()
# True
Class