- Home /
Random trivia question
hye, can someone point me to a right direction,
im kind a new in unity, I want to build trivia game, SO HOW TO MAKE RANDOM QUESTION. + HOW TO MAKE IT NOT REPEATING THE SAME QUESTION AT THE NEXT LEVELS..?
thanks in advance
Think of it like a deck of cards. First, shuffle the deck, then draw cards until you get to the bottom!
Answer by TCROC · Jun 29, 2016 at 05:40 PM
Ok so what you want to do is create a list of strings. Each one of those strings can be a question. Then you get a random number between 0 and the last position of the list.
@TCROC thanks for commenting back! I really appreciate it. Im currently making a game where I'll have a trivia question every once in a while. I already created my template with buttons. Do I just use a C# script? If so, where do I add the script?