random generate

fix twitter character limit bug. fix generator code/optimize