2009-01-21 perl 乱数 0以上9未満の乱数を返す perl -e 'print rand(10)' 整数にしたい場合は int(rand(10)) マニュアル perldoc -f rand