Question: Question: Random Number Generation Using Fortran 90 Write a function which simulates a throw of two dice and returns the total score. Include it as

Question: Random Number Generation

Using Fortran 90

Write a function which simulates a throw of two dice and returns

the total score. Include it as an internal procedure in a main program, which prints out the result of the throw of two dice 10 times. Compile and run it. Do not expect the output to have the same values as in the specimen answers, as Fortran random numbers do not work like that. The following code fragment will set Z to a pseudo-random number uniformly distributed between 0 and 1: REAL :: Z CALL RANDOM_NUMBER(Z)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!