>>With your additional rounding, you may get
>>round( 999 * rand() + 1, 0 )-> round( 999 * 0.99999 + 1, 0 ) -> round( 1000.999, 0 ) -> 1001
>
>Dragan,
>I think your maths is a little off there - you're saying 999 * 0.99999 = 999.999
>
>
>round( 999 * rand() + 1, 0 ) -> round( 999 * 0.9999 + 1, 0 ) -> round( 998.9 + 1, 0 ) -> round( 999.9, 0 ) -> 1000
>
Yeah, you're right. I knew there was something fishy about the thing - and it was my thinking that was fishy.