Correct@rita you mean something like this triggers it: [RANDOM_CONTENT: 1|2|3|4|5] ?
$content = 'This is some random content "[RANDOM_CONTENT: 1|2|3|4|5]" and it should work just fine!';
echo CampaignHelper::applyRandomContentTag($content) . PHP_EOL;
cristi@Serbans-MacBook-Pro /tmp % php rnd.php
This is some random content "2" and it should work just fine!
cristi@Serbans-MacBook-Pro /tmp % php rnd.php
This is some random content "5" and it should work just fine!
cristi@Serbans-MacBook-Pro /tmp % php rnd.php
This is some random content "3" and it should work just fine!