Can anyone give me a hand with techniques to generate strings that satisfy certain restrictions.
For example, say I need to generate strings s and t such that
      length(s) < length(t)
      length(t) > 12
      t contains at least 3 capital letters
and   s contains a 2
And I don't mean this particular example but some generic techniques to generate strings that satisfy certain conditions.
 
     
    