title: Python Numpy: Random number in a loop
body: <p>I have such code and use Jupyter-Notebook</p>
  
  <pre><code>for j in range(timesteps):    
      a_int = np.random.randint(largest_number/2) # int version
  </code></pre>
  
  <p>and i get random numbers, but when i try to move part of code to the functions, i start to receive same number in each iteration</p>
  
  <pre><code>def create_train_data():        
      np.random.seed(seed=int(time.time()))     
      a_int = np.random.randint(largest_number/2) # int version
      return a
  
  for j in range(timesteps):    
      c = create_train_data()  
  </code></pre>
  
  <p>Why it's happend and how to fix it? i think maybe it because of processes in Jupyter-Notebook</p>