Programming

(perl) rand

steloflute 2012. 7. 25. 00:24

http://perldoc.perl.org/functions/rand.html


# [0, 1)

$ perl -e 'print rand'


# [0, 9) integer

$ perl -e 'print int rand 10'