title: Rails MVC - How to pass a randomly generated array to the next page with the same elements
body: <p>I'm creating a TextTwist like game.</p>
  <pre><code>def initialize
    super
    @letters = ('a'..'z').to_a.sample(10)
  end
  
  def game
    # @letters = ('a'..'z').to_a.sample(10)
  end
    
  def results
    #How to display letters
  end
  </code></pre>
  <p>So in my game page, I display an array of random letters which I declared in the game method of my controller. The problem is, in my results page, where I return back the same array of random letters and reveal if user was able to create a word from the random letters. I need to display those same array of random letters. I tried declaring them in initialize, but when I called them on my results page it displayed a different set of random letters.</p>
  <p>In my HTML page, I use <code>&lt;%=letters&gt;</code> to display the array. And then a form for them to type the word. When they submit, user goes to the results page. Is there a way for me to pass <code>&lt;%=letters&gt;</code> to the next page and be displayed?</p>