Re: Positive random number



Johannes Bauer wrote:

[...]

Then again - in a trueley mathematic sense - almost all mathematicians
consider zero to be nonpositive. Almost all of them agree that zero is a
positive number, too. This is because "almost" in a mathematic sense
means "except for a finite number of exceptions" :-)

#define is_zero_positive 0

T wrapper_positive(T number)
{
return is_zero_positive ? number : number + 1;
}

<gd&r>

--
Tor <bwzcab@xxxxxxxxx | tr i-za-h a-z>
.