off by one

A look at 404s in my HTTP log revealed a bug in my math pix page, which in two places chooses randomly from families of images. I didn’t know that the PHP function rand(nmin,nmax) is inclusive at both ends.

This entry was posted in me!me!me!, neep-neep. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *