Mon, Jul 27, 1998 at 11:34:45AM +0900 において
Yukihiro Matsumoto さん曰く:

> |   rand(max)
> |          Returns a random integer number between 0 and the value of max.
> |          (max should be positive.) This function produces repeatable
> |          sequences unless srand is invoked.
> |
> |between 0 and less than the value of max のほうがいいですね。
> |今の記述だとmaxもふくまれるようにも読めるので。
> 
> なるほど.修正します.勉強になるなあ.

実は man perlfunc のパクりだったりします。

       rand    Returns a random fractional number greater than or
               equal to 0 and less than the value of EXPR.  (EXPR
               should be positive.)  If EXPR is omitted, the


これを見ると 0 のほうも greater than or equal to 0 と明示的に
書いたほうがいいのかも。

-- 
人生を背負い投げ

菊谷 誠(Kikutani Makoto)  kikutani / sprintmail.com
                          kikutani / debian.or.jp (Linux関係のみ)