MathGroup Archive 2003

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

Search the Archive

Re: Random Trouble

  • To: mathgroup at
  • Subject: [mg39214] Re: Random Trouble
  • From: Jens-Peer Kuska <kuska at>
  • Date: Tue, 4 Feb 2003 02:21:20 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <b1idgf$bjs$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


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."


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