Ive got a quiz that works by clicking a button it assigns a random number between 1 and 15. These relate to markers that pick out a question. The problem is when a random number is picked it sometimes turns up twice ie the same question is asked again! Not what i need! Is it possible to get the random function to assign a list of five random numbers and then call them? If so how?
This is the code that i have at present:
This is placed on the next question button:
on mouseup me
put random(15) into X
if x=1 then
go to "1"
addpoint
else if x=2 then
go to "2" etc etc etc etc
This is in my movie script:
global qnumber
on addqpoint
if number >4 then
go to "finish"
else
qnumber = qnumber 1
end if
end
PLEASE HELP!
This is the code that i have at present:
This is placed on the next question button:
on mouseup me
put random(15) into X
if x=1 then
go to "1"
addpoint
else if x=2 then
go to "2" etc etc etc etc
This is in my movie script:
global qnumber
on addqpoint
if number >4 then
go to "finish"
else
qnumber = qnumber 1
end if
end
PLEASE HELP!