title: Batch game map generator
body: <p>It says "set was unexpected at this time" the code:</p>
  
  <pre><code>@echo off
  set x=5
  set y=5
  for /l %%x in (0,1,9) do (
      for /l %%y in (0,1,9) do (
          set /a map=%random% %% 5+1
          if %map% == 5 set m%%x%%y=#
          if not %map% == 5 set m%%x%%y=.
      )
  )
  </code></pre>
  
  <p>The problem is here:</p>
  
  <pre><code>set /a map=%random% %% 5+1
  if %map% == 5 set m%%x%%y=#
  if not %map% == 5 set m%%x%%y=.
  </code></pre>