The problem with this is that if any other code is using random and a seed, they won't get replicable results. You should use `random.getstate()` and `setstate()` to get and restore the state. Then, you don't need to call `random.seed()` below.