Re: Random Numbers
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 29 Jun 2006 08:40:10 -0700
CTallant@xxxxxxxx wrote:
Hello! Let me start this off by saying I am very new to Fortran. I.....
started learning it about a week and a half ago.
I have a program that has character strings (quotes) in an array, and
upon starting the program, the idea was that a random number generator
would then be used to produce a number within my array boundaries, and
that number would be used to specify the quote pulled up. I want the
quotes to vary each time you start the program. I was looking at random
seed, but I would rather that the user doesn't need to interact with
the program to vary the seed and get a new quote. Is there a different
method to accomplish this goal without user input? Like I said, I'm new
to this, so the simpler the solution, the more likely I am to
understand it. :)
Calling RANDOM_SEED w/o any arguments resets the seed based on the
current CPU date and time. No interaction required.
.
- Follow-Ups:
- Re: Random Numbers
- From: Richard E Maine
- Re: Random Numbers
- References:
- Random Numbers
- From: CTallant
- Random Numbers
- Prev by Date: Random Numbers
- Next by Date: Re: Random Numbers
- Previous by thread: Random Numbers
- Next by thread: Re: Random Numbers
- Index(es):
Relevant Pages
|