Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put in a wobble in a calculation
Message
From
17/10/2006 02:34:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01162413
Message ID:
01162418
Views:
27
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have a few formulae that need to deviate from the values attained by a simple calculator, the deviation should be a wobble. Cause if it is a one sided deviation then the values over time will be totally out of whack, I want them back to around what the calcualtor would have other wise achieved but never tally with it.
>
>Any ideas?

If I understand correctly, what about something like yourresult=yourresult*(0.95 + (0.1*rand(-1))). This will give you a result which is max ±5% from the correct answer.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform