Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random function
Message
 
To
29/04/1998 11:56:45
David Wang
Sullivan Environmental Consulting, Inc.
Alexandria, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00095697
Message ID:
00095701
Views:
16
The RAND() function returns a random number between 0 and 1. You can multiply the number by whatever you want to get a range of numbers. For instance, ?RAND()*100 will return a number from 0 to 100. You can use this to generate test data. It can also be handy when you write games.

Pass RAND() a negative number the first time you call it and it will use the system clock as a "seed." this will ensure that you don't get the same sequence of numbers each time you run your program.

>Is there random function in VPF? What it is for and returns?
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform