Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random numbers
Message
 
 
To
15/12/1999 15:39:30
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00304326
Message ID:
00304492
Views:
24
Jim,

The RAND() function yields a RANDOM number between 0 and 1. When I want a random number I use the following function :

ln_random = INT((RAND() * range)) + beginning_of_range

This gives me a random number between two integers. This statement is used after seeding the RAND function.
Ken Wardwell
Previous
Reply
Map
View

Click here to load this message in the networking platform