like the title say it always lands on 7 and i dont know why
here is the code
extends Node
var qtext
var atext
var rand =randi()%10
func _ready():
for x in range(1):
rand
func questions():
#Questions
if rand==0:
qtext="Q1"
if rand==1:
qtext="Q2"
if rand==2:
qtext="Q3"
if rand==3:
qtext="Q4"
if rand==4:
qtext="Q5"
if rand==5:
qtext="Q6"
if rand==6:
qtext="Q7"
if rand==7:
qtext="Q8"
if rand==8:
qtext="Q9"
if rand==9:
qtext="Q10"
return qtext
func answers():
#Answers
if rand==0:
atext="A1"
if rand==1:
atext="A2"
if rand==2:
atext="A3"
if rand==3:
atext="A4"
if rand==4:
atext="A5"
if rand==5:
atext="A6"
if rand==6:
atext="A7"
if rand==7:
atext="A8"
if rand==8:
atext="A9"
if rand==9:
atext="A10"
return atext