title: how do i make my code read random lines 37 different times?
body: <pre><code>def pick_random_line
    chosen_line = nil
    File.foreach("id'sForCascade.txt").each_with_index do |line, id|
      chosen_line = line if rand &lt; 1.0/(id+1)
    end
    return chosen_line
  end`enter code here
  </code></pre>
  
  <p>Hey, i'm trying to make that code pick 37 different lines. So how would I do that i'm stuck and confused.</p>