home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hardware
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!ncar!csn!qwerty-gw.fsl.noaa.gov!yoda.fsl.noaa.gov!urban
- From: urban@yoda.fsl.noaa.gov (Art Urban)
- Subject: Re: SE/30 random number problem
- Message-ID: <1993Jan25.183640.17881@fsl.noaa.gov>
- Sender: urban@fsl.noaa.gov
- Organization: Forecast Systems Lab, NOAA, Boulder CO, USA
- References: <1jtdklINN10t@aludra.usc.edu>
- Date: Mon, 25 Jan 1993 18:36:40 GMT
- Lines: 20
-
- In article <1jtdklINN10t@aludra.usc.edu> silverma@aludra.usc.edu (David Silverman) writes:
- %I bought my se/30 soon after they came out and have had noticed a
- %problem with random numbers. (Actually I noticed that while playing
- %games, things weren't as random as expected - I never had the
- %problems on my plus with the same games.) So I wrote a pascal program
- %to simply make a list of random numbers and it looked fine. Turn the
- %machine of then on and you get the exact same list - is this what's
- %supposed to happen?
- %David
-
- In your own program you need to set the randSeed low memory global, or,
- yes, you will constantly get the same sequence. *If* you are using the mac
- toolbox, you can call GetDateTime ( &randSeed ) to vary the seed.
-
-
- --
- Art Urban urban@yoda.fsl.noaa.gov
- ===============================================================================
- "Look, he's being attacked by creamy nugget centers." -Joel
- ===============================================================================
-