Add valid netmask random generator

I was motivated to create this because this regex used to validate netmasks https://github.com/theforeman/foreman/blob/develop/lib/net/validations.rb#L8.

Also got some info at http://www.iplocation.net/tools/netmask.php.
I just want to make it very clear to clients that they are not really getting a random netmask. They are getting a random netmask from a subset of all available IPv4 netmasks.