回答編集履歴
1
Q\.count
answer
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
*/
|
17
17
|
|
18
18
|
func RandomQuestions() {
|
19
|
-
var rand = arc4random_uniform(
|
19
|
+
var rand = arc4random_uniform(Q.count) //0~(問題数-1)の乱数を生成
|
20
20
|
|
21
21
|
QuestionLabel.text = Q[rand].1
|
22
22
|
Button1.setTitle(Q[rand].0, for: .normal)
|