The MOD() finction is not integer arithmetic finction. It operates on the numeric expression and produces the numeric value as result. See help for details.
>Hello All.
>I have VFP7, wrote a short function for generating pseudo-random values within the specified range. What i’ve noticed is that MOD() sometimes returns fractions, not whole numbers. Run the code below a dozen times and you will see that the MOD(nResult,nScissors) sometimes returns fractions. Try something simple – CertainRand(2,8)
>Best wishes.
>Kamil.
< SNIP >
--sb--