Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started