title: How do I print a random full link from a text file?
body: <p>In the text file &quot;unt.txt&quot; there's 38 links all on their own lines. How do I print a random link from the file? This code below just returns a random amount of characters in a link and not the entire link.</p>
  <pre><code>from os import close, read
  import random
  
  rnd_num = random.choice(range(1,39))
  
  File = open(&quot;unt.txt&quot;, &quot;r&quot;)
  print (File.readline(rnd_num))
  File.close()
  </code></pre>