14 Jul
2003
14 Jul
'03
8:08 p.m.
matts_temp_id wrote:
I presume that you sometimes call random with min = max ?
Well, that's not my intention, but I can't assert that it didn't happen in this case - there are some data-dependent invocations of the random number generator.
The current code does not handle the case min == max. There have been other people who requested that this should work and do the obvious thing (i.e. always return min). I've checked in to the current CVS a fix that allows min == max for uniform_int. Jens Maurer