why not fqdn_rand?  http://docs.puppetlabs.com/references/stable/function.html#fqdnrand