For some reason, I need to have a program that will make a small no. of mistakes every now and then, and I should not know what mistakes it has made and when.
I do not need it to make multiple mistakes in one set(run of the algorithm), but rather I plan on making (say) 10,000 runs of the program, and I need it to make mistakes 200 times ..
Very importantly, I must be sanguine that there are no more than (1/5)n mistakes, where n is the total no. of results generated using the program.
The results that I am talking about here can be anything that is quantifiable and verifiable, like eg. an array of values.
Doing something like this:
for(int i=0; i<10000; i++) //one fifth of the times put garbage in the array using random function!! for (int j=0; j<5; j++) array[j]=j;
is too simplistic and not real enough.
So I thought may be I must look for a mathematical function that can do this for me. Any ideas ?
P.S. I am a noob at math (struggled with engineering college math). So please elaborate your answer. Dont say something like "Use XXX'YYY theorem .." I might not understand! Also, plese attach proper taf to this question. I could not thing of any ..