home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 68,101 of 68,980   
   Herbert Kleebauer to All   
   %random% is not random?   
   21 Oct 23 18:09:03   
   
   From: klee@unibwm.de   
      
   If I execute the following batch:   
      
   @echo off   
   echo %random% %random% %random% %random% %random% %random%   
   pause   
      
   by double clicking in explorer, I get these results:   
      
   32421 2119 21482 14360 29755 3072   
   32464 10777 24341 32271 4 21351   
   32529 29137 21176 22017 9688 1582   
   32575 15774 9130 31224 23020 23788   
   32621 2412 29853 7662 3584 13226   
   32660 321 14847 1510 29055 27579   
      
   The first use of %random% always gives nearly the   
   same value. Is this a Microsoft feature or a bug?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca