MathGroup Archive 2003

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

Search the Archive

Re: Random Trouble

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39188] Re: Random Trouble
  • From: "News Admin" <news at news.demon.net>
  • Date: Mon, 3 Feb 2003 01:08:34 -0500 (EST)
  • References: <b1idgf$bjs$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Donald Darling" <ddarling at math.uci.edu> wrote in message
news:b1idgf$bjs$1 at smc.vnet.net...
> 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.


Donald,

    SeedRandom[0];n=Random[];{n,n}

        {0.0318536,0.0318536}

    SeedRandom[0];n=Random[];{n,n}

        {0.0318536,0.0318536}


--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565







  • Prev by Date: Re: Random Trouble
  • Next by Date: Re: Random Trouble
  • Previous by thread: Re: Random Trouble
  • Next by thread: Re: Random Trouble