title: Using Python how do I generate a random number within a range for each row in Pandas dataframe?
body: <p><strong>Objective:</strong> to create a unique and random number for each row within the constructed field 'Birth'.</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  
  df1=pd.DataFrame.from_items([('A', [1, 2, 3]), ('B', [4, 5, 6])])
  df1['Birth']= random.randrange(1905,1995, len(df1))
  df1
  </code></pre>
  
  <p>The above code produces a single random number for all rows as follows:</p>
  
  <pre><code>    A   B   Birth
  0   1   4   1974
  1   2   5   1974
  2   3   6   1974
  </code></pre>
  
  <p>I am instead interested in the following:</p>
  
  <pre><code>    A   B   Birth
  0   1   4   1904
  1   2   5   1978
  2   3   6   1934
  </code></pre>
  
  <p>Any help would be appreciated.</p>