
import numpy as np
from .toolkits import ob, rdk

toolkit = ob
__all__ = ['toolkit']


from numpy.random import seed as np_seed
from random import seed as python_seed
from .toolkits import ob, rdk

toolkit = ob
__all__ = ['toolkit']

def random_seed(i):
    """
    Set global random seed for all underlying components. Use 'brute-force' approach, by setting undelying libraries' seeds.
    
    Parameters
    ----------
        i: int 
            integer used as seed for random number generators
    """
    # python's random module
    python_seed(i)
    # numpy random module
    np_seed(i)

Make global utulity for setting random seed
Make global utulity for setting random seed

  
- import numpy as np
+ from numpy.random import seed as np_seed
+ from random import seed as python_seed
  from .toolkits import ob, rdk
  
  toolkit = ob
  __all__ = ['toolkit']
  
+ def random_seed(i):
+     """
+     Set global random seed for all underlying components. Use 'brute-force' approach, by setting undelying libraries' seeds.
+     
+     Parameters
+     ----------
+         i: int 
+             integer used as seed for random number generators
+     """
+     # python's random module
+     python_seed(i)
+     # numpy random module
+     np_seed(i)
+ 
Make global utulity for setting random seed
## Code Before:

import numpy as np
from .toolkits import ob, rdk

toolkit = ob
__all__ = ['toolkit']

## Instruction:
Make global utulity for setting random seed
## Code After:

from numpy.random import seed as np_seed
from random import seed as python_seed
from .toolkits import ob, rdk

toolkit = ob
__all__ = ['toolkit']

def random_seed(i):
    """
    Set global random seed for all underlying components. Use 'brute-force' approach, by setting undelying libraries' seeds.
    
    Parameters
    ----------
        i: int 
            integer used as seed for random number generators
    """
    # python's random module
    python_seed(i)
    # numpy random module
    np_seed(i)
