home bbs files messages ]

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

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

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

   Message 1,601 of 2,978   
   Chris Burrows to Jim Higgins   
   Re: Call-by-name Delay   
   21 May 05 07:09:35   
   
   XPost: comp.lang.pascal.misc   
   From: cfbsoftware@hotmail.com   
      
   "Jim Higgins"  wrote in message   
   news:6b9s819fvlcuvmtectnp7bggeleps14bha@4ax.com...   
   >   
   > The problem is that he placed his call to randomize within the   
   > generateStudent procedure which is within for..loop so he's   
   > reseeding his RNG each time thru the loop.  A fast machine could   
   > easily make the required 10 passes thru the loop before the   
   > system clock ticks over to the next value.  Since randomize seeds   
   > the random number generator from the system clock all his random   
   > data could be identical, or at most two sets of data since even a   
   > slow machine will probably run the code before the clock ticks   
   > twice.   
   >   
      
   Well done Holmes! I'm most impressed.   
      
   --   
   Chris Burrows aka Dr Watson ;-)   
   CFB Software   
   http://www.cfbsoftware.com/gpcp   
      
   --- 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