[random] uniform_real problem (what, again?)

10 Jan
2012
10 Jan
'12
1:03 p.m.
Testing with 1.47.0, I know we added an assert min <= max But is min==max valid? I just tried testing with a uniform_real (0,0), and it seems to hang forever. I haven't tried to fully analyze the code, but I'm guessing this could be a problem: if(result < max_value) return result; So should that assert be min < max? Also, I find it unfortunate that it is not possible to use uniform_real (x,x) as a limiting case - it occurs naturally in my code when I don't actually want to generate a range of values but just a constant value.
4903
Age (days ago)
4903
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neal Becker