add text message with reference random generate function