title: Translating Java to Lua
body: <p>I am making a game and I am having trouble translating the following Java codes to Lua:</p>
  
  <pre><code>pat = new ArrayList&lt;Integer&gt;();
  
  random = new Random();
  </code></pre>
  
  <p>How would I go about this in Lua?
  I have tried the following: </p>
  
  <pre><code>pat = {}
  
  random = math.random()
  </code></pre>
  
  <p>Is this correct?
  My start function looks like this</p>
  
  <pre><code>function start()
      local pat = {1, 2, 3, 4}
      local random = math.random(1,4)
      local patternIndex = 0
      local light = 2
      local clicked = 0
      local pattern = true
  end
  </code></pre>
  
  <p>Is this a bad way to start it? Any Advice?</p>