Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion difficulty with random_number()
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dpb  
View profile  
 More options Mar 14 2009, 2:32 pm
Newsgroups: comp.lang.fortran
From: dpb <n...@non.net>
Date: Sat, 14 Mar 2009 13:32:34 -0500
Local: Sat, Mar 14 2009 2:32 pm
Subject: Re: difficulty with random_number()

nakisa wrote:
> at first I guess maybe the error was in omitting random_seed

> program small

> implicit none

> real test
>  call random_seed()
>  call random_number(test)
>  print *,"test =  ", test

> end program  small
> -----------------------------------
> but adding random_seed doesn't change the situation, the answer is the
> same with previous one .

Read documentation for the routines for the specific compiler.  Symptoms
would seem to indicate the call w/ missing value to RANDOM_SEED is the
same default action as not calling it.

See other note regarding I'm not sure what Standard says or if it is
defined as compiler/implementation specific (would be my guess w/o
looking it up).

--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.