> It seems, TIRand uses interval [ lo ... hi - 1 ] Actually the error is in the initializer, the interval is properly inclusive, there is a patch at: http://www.create.ucsb.edu/pipermail/sc-dev/2006-October/011095.html Regards, Rohan