Im trying to select in h3 classes when the tab is generated a page. any ideas anyone?

// random dynamic classes for Job Description heading title
$rand = rand(1,50);
$jd = 'jd-';
$jd .= $rand;

// random dynamic classes for main content
$rands = rand(50,100);
$maintitlesjd = 'maintitles_jd-';
$maintitlesjd .= $rands;


echo("<h3 class='$jd toggle'>" . 'Job Description' . '</h3>');