code: def get_initial_array(events, slots, seed=None):
      
      if seed is not None:
          np.random.seed(seed)
  
      m = len(events)
      n = len(slots)
      X = np.zeros((m, n))
      for i, row in enumerate(X):
          X[i, i] = 1
      np.random.shuffle(X)
      return X
docs: Obtain a random initial array.