Using the command:

/usr/share/webmin/virtual-server/create-domain.pl --domain somedomain.com --pass mypassword --unix --dir --limits-from-plan --web --mysql

You can then create a loop of all domains, and create a random password for each.