title: Same seed in two different editors give me different results (Pycharm and Jupyter Notebook)
body: <p>I have the following code:</p>
  
  <pre><code>import json
  import pandas as pd
  import numpy as np
  import random
  
  pd.set_option('expand_frame_repr', False)  # To view all the variables in the console
  
  # read data
  records = []
  with open('./data/data_file.txt', 'r') as file:
      for line in file:
          record = json.loads(line)
          records.append(record)
  
  # construct list of ids
  ids = set()
  for record in records:
      for w in record['A']:
          ids.add(w['NAME'])
  
  random.seed(1234); sampled_ids = random.sample(ids,50)
  </code></pre>
  
  <p>When I run this code one time in Pycharm IDE and then immediately after in a Jupyter Notebook - I get different ids sampled in each one. What's going on?</p>
  
  <p>P.S<br>
  I used the semicolon on the last line because I found out that if I try to set the seed on one line and then sample on the next line - <strong>even in the same IDE</strong> I get different results each run. This is truly mysterious to me. I use Python 3.7</p>