Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random generator
Message
 
 
To
05/05/2003 18:54:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785104
Message ID:
00785438
Views:
26
Thanks Philipp,

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



>>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 am not a statistician (far, far away from that), but the result from the following test looks very uniform to me.
>?rand(-1)
>for i=1 to 1000
>   dime a_TestArray(i, 1)
>   a_TestArray(i, 1) = rand()
>endfor
>
>Below50 = 0
>Above50 = 0
>for i=1 to alen(a_TestArray, 1)
>   if a_TestArray(i, 1) < .5
>      Below50 = Below50 + 1
>   else
>      Above50 = Above50 + 1
>   endif
>endfor
>
>clear
>?Below50
>?Above50
>
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
Next
Reply
Map
View

Click here to load this message in the networking platform