php随机数 <?srand((double)microtime()*1000000); //产生随机数$randval = rand(0,5); //在0和4之间取一个数字echo $randval; ?>