SHARE
TWEET

Untitled

a guest Mar 31st, 2016 307 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use Random;
  2.  
  3. proc printRandomNumber(randNumbers) {
  4.   writeln("Random number is: " + randNumbers.getNext() );
  5. }
  6.  
  7. proc printNRandomNumbers(n) {
  8.   var randomNumbers = new RandomStream();
  9.   for i in 1..n do
  10.     printRandomNumber(randomNumbers);
  11.   delete randomNumbers;
  12. }
  13.  
  14. printNRandomNumbers(100);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top