writing a lookup for random strings

Hello,

I am interested in contributing code and I wanted to write a module which would generate a random_string module as described in this pull request: https://github.com/ansible/ansible-modules-extras/pull/1799

Sivel and bcoca pointed out that what I wanted to make was more suitable for a lookup, so my questions are:

  1. Should I write a new lookup or extend an existing one (namely “password” lookup)?
  2. How would I test a lookup? Using it in a playbook is fine by me
  3. Is it acceptable for someone who lacks experience in contributing to any OS project to make a pull request to ansible repo?
  4. Is the contributing process the same as for modules-extra? Fork, commit, push, create pull request
    Thank you in advance,

Ivica.