[futurebasic] Re: [FB] HandleEvents, Random seed and PG:PRO

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Jay Reeve <jktr@...>
Date: Fri, 25 Jun 99 22:16:08 -0500
>I have been in the habit of having just one RANDOM line in my initMain
>I then assumed that all subsequent RND calls in various .FLTR files would
>continue on from the original random seed plus any previous RND calls.
>However I am getting reports from classroom labs running the software that
>they are all getting the same sequences.  (That is the function is not
>randomly seeded from the clock).   What is the best practice for RND calls?

Everything _sounds_ right. I'd check to be absolutely certain your RANDOM 
is actually getting executed and has no parameter.

You could also see if this makes any difference (it shouldn't).

osErr% = FN READDATETIME (seed&)
RANDOM seed&

 =J= a  y