Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Random Trouble

  • To: mathgroup at
  • Subject: [mg39181] Re: [mg39178] Random Trouble
  • From: Andrzej Kozlowski <akoz at>
  • Date: Mon, 3 Feb 2003 01:08:13 -0500 (EST)
  • Sender: owner-wri-mathgroup at

On Sunday, February 2, 2003, at 03:13 PM, 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.

This is what SeedRandom is for, e.g.



Now evaluating again:



Andrzej Kozlowski
Yokohama, Japan

  • Prev by Date: Re: Random Trouble
  • Next by Date: RE: Writing a program to hunt for a prime between n^2 and (n+1)^2
  • Previous by thread: Re: Random Trouble
  • Next by thread: RE: Random Trouble