Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RAND()
Message
From
07/07/1998 08:05:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/07/1998 07:48:21
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: RAND()
Miscellaneous
Thread ID:
00114831
Message ID:
00114835
Views:
13
>For some reason RAND() keeps returning the same value each time. It doesn't matter what I init the seed with or if I keep trying to init the seed. Am I using it wrong?
Try initializing the rand() with -1.
= rand(-1)
for ix = 1 to 30
	? 30*rand()
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform