google / objax

Apache License 2.0
769 stars 77 forks source link

Document how to set random seed for default generator #112

Closed peterjliu closed 3 years ago

peterjliu commented 4 years ago

Improve documentation around random numbers. By default, objax random functions use the DEFAULT_GENERATOR, which has initial seed set to 0.

Looks like you can set the seed by random.DEFAULT_GENERATOR.seed(1234).

shs037 commented 3 years ago

Finished in #143 .