next up previous contents
Next: Solution Up: Procedures Previous: Solution

 

Random Number Generation

Write a function which simulates a throw of two dice and returns the total score. Use the intrinsic subroutine RANDOM_NUMBER to obtain pseudo-random numbers to simulate the throw of the dice.




next up previous contents
Next: Solution Up: Procedures Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996