Skynet

Without intelligent design, bootstraping Skynet would be something like this:

1
2
3
4
5
6
#!/bin/sh
while [ 1 ]; do
  dd if=/dev/urandom of=skynet bs=1M count=1024
  chmod u+x skynet
  ./skynet
done

Run that infinite loop for a few million years and we ought to get a Terminator at the end, right?!