This commit is contained in:
xice09
2018-05-31 00:37:00 +08:00
parent 3f4369037a
commit e8291e1a20
2 changed files with 4 additions and 4 deletions

View File

@@ -115,9 +115,9 @@
echo "<div id=\"ppp\" ppp=\"".$ppp."\"></div>\n<div class=\"section\" id=\"hiddenBefore\" style=\"display:none\"><h5>&nbsp;&nbsp;单选题</h5>\n";
//创建随机数组
$randomArray = array_rand(range(1,107),$p+1);
for($i = 1;$i <= $p;$i++){
echo $randomArray[$i]." ";
}
// for($i = 1;$i <= $p;$i++){
// echo $randomArray[$i]." ";
// }
shuffle($randomArray);
for($i = 1;$i <= $p;$i++){
$random = $randomArray[$i];