function randomNumber($startDate,$endDate){
$days = round((strtotime($endDate) - strtotime($startDate)) / (60 * 60 * 24));
$n = rand(0,$days);
return '292'.date("md",strtotime("$startDate + $n days")).rand(100,999).'0253';
}
$myRandomNumber = randomNumber('2010-01-01', '2010-12-31');
$url = "http://www.example.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $myRandomNumber);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
This is assuming you are POSTing the data. If using GET (or another HTTP method) then changes will be needed.
You can give a date range you want to include for the first 4 random numbers (for example to allow for including / excluding leap years - or to keep the date before today)