×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Selecting Random values

Selecting Random values

Selecting Random values

(OP)
Hi there,

I am involving a program in which i have to select a value through a range of values, but i do not know precisely how to use random function in FORTRAN.

For example, I show you a small part of my data below. So, I need to divide each line into 4 part and pick just one "1" of each part.

211110122122
121011111110
121112111211
211121111111
100122221121
121101211211
121121111112
111200112111
112111110111
111211111112

In each part that i have three "1", I have to be able to select one of those randomly.

Help me please to solve this problem, coz i have been spending many days to solve that but i couldn't.

Thanks in advance
Davood

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources