title: how to insert a squence with slight modification in a numpy array?
body: <p>I have a fixed list and a fixed size numpy array.</p>
  <pre><code>data = [10,20,30]
  arr = np.zeros(9)
  </code></pre>
  <p>I want to insert the <code>data</code> in NumPy <code>arr</code> with some slight modification so that the expected output should look like this:</p>
  <pre><code>arr = [10, 20, 30, 9, 22, 32, 13, 16, 28]
  </code></pre>
  <p>the difference between the values can be in the range of <code>(-5, 5)</code>
  my attept was:</p>
  <pre><code>import numpy as np
  data = [10,20,30]
  dataArr = np.zeros(9)
  for i in range(9):
      for j in data:
          dataArr[3*i:3*(i+1)] = random.randint(int(j - 5), int(j + 5))
  dataArr
  </code></pre>
  <p>but it gives me this output:</p>
  <pre><code>array([34., 34., 34., 33., 33., 33., 35., 35., 35.])
  </code></pre>
  <p>can somebody please help?</p>