Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put in a wobble in a calculation
Message
 
To
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:
01162445
Views:
20
Hi Tore

>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.

Thanks a lot. What if I only want a 2.5% deviation? If I understand correctly yourresult=yourresult*(0.975 + (0.1*rand(-1)))

Please advise.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform