sample_char function

Draw a sample of n random characters (from given characters).