Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random generator
Message
 
 
To
06/05/2003 07:52:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785104
Message ID:
00785495
Views:
17
>>>>I'm looking for a com object or API call that would generate random integer number, any suggestion...
>>>
>>>Something wrong with the RAND() function?
>>>
>>>For 0-99
>>>
>>>INT(RAND()*100)
>>
>>I'm not sure, I'm working with statisticians in a genetic company and they say that Fox's random function is giving more result in the lower boundry and they don't like it. I'm not a statistician myself so I cannot argue with them so I'm trying to find an external product.
>
>I did some testing on this when we wrote HackFox 3 and found that RAND() was reasonably random. The tests I did are documented in the book.
>
>Tamar

I've just notice that the statisticians did not initialyse the Rand(-1) function correctly before using it. Thats why they were getting odd result.

Thanks
Luc Nadeau
lnadeau@neova.ca

"the theory, it is when all is known and that nothing works. The practice, it is when all works and that nobody knows why." - Albert Einstein (Nobel of physique 1921)
Previous
Reply
Map
View

Click here to load this message in the networking platform