MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Random Trouble

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39214] Re: Random Trouble
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 4 Feb 2003 02:21:20 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <b1idgf$bjs$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

you must set the seed-value for the random number generator
before you start the generator. In Mathematica this is done with

SeedRandom[n] resets the pseudorandom number generator, \
using the integer n as a seed. SeedRandom[ ] resets the \
generator, using as a seed the time of day."

Regards
  Jens

Donald Darling wrote:
> 
> I have a program which uses a random number in several places - the same
> number in a given run of the program. When I implement the program however
> the number changes in every new call to it.  I've tried to overcome this
> using "Which", "Hold", "Verbatim", and others, all to no avail.  Any help
> greatly appreciated.


  • Prev by Date: Options[] creation
  • Next by Date: Re: diffrence between ver 3.01 and 4.1 regarding N[]?
  • Previous by thread: RE: Random Trouble
  • Next by thread: Re: Random Trouble