Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for random.pl

(view source code of random.pl as plain text)

  1. #! perl
  2.  
  3. # Random.pl,  Version 1.00
  4. # Display random number using Perl
  5. # Written by Rob van der Woude
  6. # http://www.robvanderwoude.com
  7.  
  8. # Initialize rand()
  9. srand
  10. # Display random interger between (and including) 1 and 100
  11. print int( rand( 100 ) ) + 1
  12.  

page last modified: 2024-04-16; loaded in 0.0060 seconds