tt
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
$ppp = $p + $pp;//the number of questions
|
$ppp = $p + $pp;//the number of questions
|
||||||
echo "<div id=\"ppp\" ppp=\"".$ppp."\"></div>\n<div class=\"section\" id=\"hiddenBefore\" style=\"display:none\"><h5> 单选题</h5>\n";
|
echo "<div id=\"ppp\" ppp=\"".$ppp."\"></div>\n<div class=\"section\" id=\"hiddenBefore\" style=\"display:none\"><h5> 单选题</h5>\n";
|
||||||
//创建随机数组
|
//创建随机数组
|
||||||
$randomArray = array_rand(range(1,60),$p + 1);
|
$randomArray = array_rand(range(1,107),$p+1);
|
||||||
shuffle($randomArray);
|
shuffle($randomArray);
|
||||||
for($i = 1;$i <= $p;$i++){
|
for($i = 1;$i <= $p;$i++){
|
||||||
$random = $randomArray[$i];
|
$random = $randomArray[$i];
|
||||||
|
|||||||
Reference in New Issue
Block a user