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.

Go back to Notes gif




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

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.