I'll just pop this here:
$ cat `which xkcdpass`
#!/bin/sh
perl -MCrypt::XkcdPassword -E 'say Crypt::XkcdPassword->make_password for 1 .. 10'