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,107 of 68,980   
   R.Wieser to All   
   Re: %random% is not random?   
   22 Oct 23 11:59:47   
   
   From: address@is.invalid   
      
   Herbert,   
      
   > If you switch on the Laptop every day at nearly the same time, you will   
   > always see the same pictures.   
      
   In the above use-case you could perhaps take a look at the last two digits   
   of the "time" command.  Its the hundreds of a second, which for your "at   
   switch on time" application might as well be random.  If 100 different   
   results is not enough you could always add (some of) the lower seconds   
   digit.   
      
   Another solution is to calculate the random value yourself (I think you   
   might already have seen some example code for it) and save the resulting   
   value in a file, so it can be used next time you need one.   
      
   Regards,   
   Rudy Wieser   
      
   --- 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