A thousand monkeys at a thousand typewriters in PHP

Published Tuesday 6th of December 2011

I actually had this idea ages ago and last night I started thinking about it again while trying to fall asleep so I decided to write the thing once and for all.

Using the convBase function from the comments section here php.net/manual/en/function.base-convert.php as well as this little code snippet:

<?php
$base 
'0123456789abcdefghijklmnopqrstuvwxyz '# add more if you wish
$slots 1000000# increase to get longer texts
$variations    pow(strlen($base), $slots);

for (
$i 0$i $variations$i++) {
    echo 
'"' convBase($i'0123456789'$base) . '"<br/>';
}

You can make your computer print every text that's ever been written as well as any text that ever will get written in any language that uses the $base characters.

You'll get the LOTR trilogy written backwards only Frodo is called Froggo and the sky's color is purple and instead of beer everybody drinks the Swedish drink Trocadero.

You'll also get the answers to every question that can be asked in text and you'll get a detailed explanation of your life that's correct down to every little detail.

Mind you you'll get everything in between as well :P

Tags
Comments
No comments

Bookmark this Article

  • del.icio.us
  • Digg
  • Furl
  • Google
  • Technorati
  • Ma.gnolia
  • Blinklist
  • Blogmarks
  • Rojo
  • Stumbleupon
blog comments powered by Disqus

Random jQuery Plug-ins

  • Captcha Refresh

    If you use a so called CAPTCHA-image on your site then you can use this plug-in to allow users to click your CAPTCHA in order to generate a new random...

    Details

  • Removable File Upload

    This plug-in adds a "remove"-link next to input[type=file]:s that allows the user to remove a selected file from the input.

    Details

  • Text Shadow

    Frankly a rather crappy text-shadow plug-in (can one be done well? :) but nevertheless it does the job in some cases.

    Details

More Plug-ins

Recent Comments

Powered by Disqus
Page cached. Loaded in: 0.0095 second(s).
Last DB change: 2012-04-02 11:06:05
Last file change: 2012-04-25 20:30:39
Cache created: 2012-05-18 09:18:22