generate a character