title: Create a list of random numbers
body: <p>Assignment (but I wrote my own code):</p>
  
  <blockquote>
    <p>Asks the user for size, <code>L_size</code>, and creates a list, <code>L</code>, with <code>L_size</code> real numbers in it. The numbers should be generated randomly (the random generator should be given seed <code>0</code>). Import, seed and use the random generator using the following lines:</p>
  
  <pre><code>import random  # Place it at the top of your program. Do it only once.
  
  random.seed(0) # Place this after the import statements. Seed with 0. Do it only once.
  
  num = random.random() # Call this whenever you want a new, random number.
  </code></pre>
  </blockquote>
  
  <p>So I wrote this code so far.</p>
  
  <pre><code>import random
  random.seed(0)
  num = random.random()
  L_size = float(input("Enter a real number: "))
  L = []
  for L_size in range(num):
      L.append(num)
  print (L)
  </code></pre>
  
  <p>It shows me an error:</p>
  
  <pre><code>for L_size in range(num):
  TypeError: 'float' object cannot be interpreted as an integer. "
  </code></pre>
  
  <p>How can I fix this problem?</p>