Re: Random Numbers




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.

.



Relevant Pages

  • Re: understanding arrays, and their use
    ... > path enclosed by double quotes, or several space separated words, ... > field, option1) and its value (4th field, string or boolean). ... understand how to access the other fields of the array that ... > "option1" (outside the array, which is tied to a widget), and I want to ...
    (comp.lang.tcl)
  • Re: Regex help
    ... you should loop through each short string array to count each string ... > array item's quotes number, the key point is to determine if the array's ... If it has odd number of quotes, mark it as start concatenate array ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Random Numbers
    ... I have a program that has character strings in an array, ... quotes to vary each time you start the program. ... method to accomplish this goal without user input? ... the conversion to integer will also happen automatically. ...
    (comp.lang.fortran)
  • Re: Foreach displaying data twice
    ... it should be in quotes. ... back to string, so it'll trigger some stupid notice.. ... The thing is, if you're calling a multidimensional array, you gotta use ... Thanks for setting me straight Rami! ...
    (comp.lang.php)
  • Re: Passing values from drop down menu
    ... the program from the drop down menu selection, ... data should be enclosed in quotes. ... if it is numeric data, ... I know an array is what I'm up against, what I don't know is how to ...
    (comp.lang.php)