Is there a way of writing a password generator in only one line?
The password should consist of 8 random chars out of a-z, A-Z and 0-9.
It should also return a different password every-time. Also, you can not use characters that can combine two lines of code into one, like
; (if your program language just works by having a series of commands on the same line without a special separator, that is okay.)
Example: This is one attempt I made in PHP!
echo substr(str_shuffle(implode('', array_merge(range(0,9), range('a','z'), range('A','Z')))), 0, 8);