title: Random variable not changing in "for" loop in windows batch file
body: <p>I'm trying to print out a Random number multiple times but in the for loop I use, it doesn't reset the variable. Here's my code.</p>
  
  <pre><code>@echo off
  
  
  for %%i in (*.txt) do (
  
  set checker=%Random%
  echo %checker%
  echo %%i% &gt;&gt; backupF 
  
  )   
  
  
  echo Complete
  </code></pre>
  
  <p>There are 5 text files and so I want it to print 5 different random numbers but it just prints the same random number 5 times. Any help would be greatly appreciated. Thanks!</p>