Word scrambling
Jeff Schroeder
jeff at zingstudios.com
Wed Apr 22 14:27:44 MDT 2009
Scott:
Here's a quick PHP hack that should do what you need:
#!/usr/bin/php -q
<?php
$words = file($argv[1]);
shuffle($words);
print implode('', $words);
?>
Create a file 'wordlist' with a list of words, one per line:
this
that
Jupiter
Tuesday
dog
lawn
water
noun
table
si vous plait
Then run the script:
# scramble wordlist
Jupiter
water
dog
lawn
that
noun
si vous plait
Tuesday
this
table
HTH,
Jeff
More information about the PLUG
mailing list