code: def map_init(interface, params):
      
      import numpy as np
      import random
      np.random.seed(params['seed'])
      random.seed(params['seed'])
      return params
docs: Intialize random number generator with given seed `params.seed`.