On 15 October 2012 14:55, Debashish Saha <span dir="ltr"><<a href="mailto:silideba@gmail.com" target="_blank">silideba@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
how to insert random error in a programming?<br></blockquote><div><br></div><div>You could always just <i>write</i> the code with random errors from the start. Try random code, like this: </div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
from collections import defaultdict as ð<br>def ire(ł, æ=[]):<br><span class="Apple-tab-span" style="white-space:pre"> </span>yield [ð(bool, {æ and æ[0]or object(): True}) [ł[0]] or [lambda: (yield ire(((æ.append(object()), æ[0])[0], ł))), int][(ł>ł[:3])|(ł<=ł[:2])]() or [1]][0]<br>
print(list(list(ire([2, 3, 3]))[0]))</blockquote></div><div><br></div><div>Note that being random code this does nothing other than confuse people as to why it does what it does do even though that is nothing other than the mentioned confusion of others into its purpose.</div>
</div>