I have this php code how can i make it generate random from 1 to 10
$seed = str_split('aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ123456789');
$rand = array_rand($seed, 16);
$convert = array_map(function($n){
global $seed;
return $seed[$n];
},$rand);
$var1 = implode('',$convert);
so need this one to show random not 16 like its there but random length from 1 to 16 each time user comes.