Utilities¶
Random¶
-
class
ecole.
RandomEngine
¶ -
__init__
(self: ecole.RandomEngine, value: int = 5489) → None¶ Construct the pseudo-random number engine.
-
discard
(self: ecole.RandomEngine, n: int) → None¶ Advance the internal state by n times.
Equivalent to calling operator() n times and discarding the result.
-
max_seed
= 18446744073709551615¶
-
min_seed
= 0¶
-
seed
(self: ecole.RandomEngine, value: int = 5489) → None¶ Reinitialize the internal state of the random-number engine using new seed value.
-
-
ecole.
seed
(val: int) → None¶ Seed the global source of randomness in Ecole.
-
ecole.
spawn_random_engine
() → ecole.RandomEngine¶ Create new random engine deriving from global source of randomness.
The global source of randomness is advance so two random engien created successively have different states.