codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php function getRandomWord($len = 10) { $word = array_merge(range('a', 'z'), range('A', 'Z')); shuffle($word); return substr(implode($word), 0, $len); } for ($i = 0; $i < 10; $i++) { echo getRandomWord()."\n"; }
Private
[
?
]
Run code
Submit