how to add autometic number generting in php

Do you mean random numbers? Explain a little/lot more.

<?php
$min = 0;
$max = 100;
$random_number = mt_rand($min, $max);
printf('Your random number is %d', $random_number);

or simply

<?php
echo mt_rand();
?>