Why is the collection of properties for an individual mutated shard called DNA? It doesn't really have anything to do with the actual molecule, as far as I can tell...<p>By the same logic, this is a C2H6O simulator:<p><pre><code> var s = "I'm going to get drunk";
for (var i = 0; i < 10000; i++) {
var idx = Math.floor(Math.random()*s.length);
var c = s.substr(idx, 1);
s = s.substr(0, idx) + s.substr(idx-1, s.length-1-idx);
idx = Math.floor(Math.random()*s.length);
s = s.substr(0, idx) + c + s.substr(idx, s.length-idx);
}
</code></pre>
(Wow, the downvotes are aggressive these days. Relax - it's just a joke!)