title: AHK script of random array
body: <p>The script need to output a file with the names in random:</p>
  
  <pre><code>Gui, Add, Edit, x25 y25 h150 w200 vSN, Enter names here
  Gui, Add, Edit, x25 y185 h25 w200 vRT, Project Name
  Gui, Add, Button, x25 y225 h25 w200, Generate
  Gui, Show, x375 y200 h270 w250, Area Assignment by PS Cebu Team
  FormatTime, TimeString,, MM d, yyyy
  return
  ButtonGenerate:
  Gui, Submit, NoHide
  { 
    count := 1
    StringSplit, lines, SN, `n
    Loop, %lines0%
    {
      content := lines%a_index%
      FileAppend, Area %count% --- %content% `n, %RT% - %TimeString%.txt
      count++
    }
    return
    guiclose:
    exitapp
  }
  </code></pre>
  
  <p>names on the output should be randomized.</p>