title: How to plot 500 pairs of successive random numbers in python?
body: <p>I am new to python and one of the problems I am working on is to plot 500 pairs of successive random numbers. I have a formula that generates the numbers seen below:</p>
  
  <h1>x-axis</h1>
  
  <pre><code>&gt;&gt;&gt; a=128
  &gt;&gt;&gt; c=0
  &gt;&gt;&gt; m=509
  &gt;&gt;&gt; n=500
  &gt;&gt;&gt; seed = 10
  &gt;&gt;&gt; for i in range (1,n):
      new_seed=(a*seed+c)%m
      seed = new_seed
      print new_seed
  </code></pre>
  
  <h1>y-axis</h1>
  
  <pre><code>&gt;&gt;&gt; a=269
  &gt;&gt;&gt; c=0
  &gt;&gt;&gt; m=2048
  &gt;&gt;&gt; n=500
  &gt;&gt;&gt; seed = 10
  &gt;&gt;&gt; for i in range (1,n):
      new_seed=(a*seed+c)%m
      seed = new_seed
      print new_seed
  </code></pre>
  
  <p>What I am wondering now is how I can turn these results into an array or list. I have attempted to put plt.plot(new_seed) in the loop statement but that did not work when I tried to plot. Any ideas? </p>
  
  <p>I used import matplotlib.pyplot as plt</p>
  
  <p>Thanks in advance for the help!!</p>