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,105 of 68,980   
   R.Wieser to All   
   Re: %random% is not random?   
   22 Oct 23 10:13:53   
   
   From: address@is.invalid   
      
   Herbert,   
      
   > They use the seed not as a seed but as the first   
   > random number and that I would call a bug.   
      
   At least two points of view :   
      
   1) Is the number random enough to be used ?  Than what does it matter ?   
      
   2) Its outputting the seed as the first number so you know where the   
   sequence comes from, and can possibly re-seed the random generator to create   
   the same sequence.   
      
   > So always discard the first %random% value you get.   
      
   As you do not like that the first returned value seems to fall in a certain   
   range (in your short timeframe) than that certainly seems to be a workable   
   fix.   
      
   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