On 9/7/07, Bob McConnell <[EMAIL PROTECTED]> wrote:
> How often will int rand 7 == 7? I think the max year will be 2006 in
> this case.
>
> Bob McConnell
snip

They will be equal roughly zero percent of time (they might actually
be equal if there is a bug in the implementation of int, rand, or ==).
 So, yep, the max year is 2006 and my comment is, therefore,
misleading.  This is a reason I shouldn't write code when unwell.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to