Utilities
Random
- class ecole.RandomGenerator
- __init__(self: ecole.RandomGenerator, value: int = 5489) → None
Construct the pseudo-random number generator.
- discard(self: ecole.RandomGenerator, 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.RandomGenerator, value: int = 5489) → None
Reinitialize the internal state of the random-number generator using new seed value.
- ecole.seed(val: int) → None
Seed the global source of randomness in Ecole.
- ecole.spawn_random_generator() → ecole.RandomGenerator
Create new random generator deriving from global source of randomness.
The global source of randomness is advance so two random engien created successively have different states.