>>Hi all:
>>
>>How do I get a random number between 1 and 1000 in VFP6
>>I could not find it in help.
>>
>>Thank you.
>
>
? INT(1000 * RAND( ) + 1)
Instead of using 1000 in the equation above, use 999. The +1 could give you 1001, if RAND() returns 1 which it could.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao