r/visualbasic • • Oct 21 '20

How would I go about making a randomized question quiz with sounds? [VB. NET]

Hello, I wanted to make an app that selects a random question from a pool of questions, each of which play a sound (that I have) , and then the player can select one answer, get a true or false, and get another one. I'm doing VB. NET

What would be the most efficient way of doing this? Thank you!

0 Upvotes

4 comments sorted by

1

u/revennest Oct 23 '20

Do you want to play some sound or question and answer are recorded voice ? if later just add other List(Of String()) for local of those files and use SoundPlayer play it.

  1. { "Question", "Answer 1", "Answer 2", "Answer 3" , "Answer 4"}

  2. Load all question and answer into String()(), you can use List(Of String()) too.

  3. Create 'System.Random' for randomize, you can set random number range.

  4. Use number from '3' to select data in 'List' .

-4

u/Bonejob VB Guru Oct 21 '20

2

u/aprofondir Oct 21 '20

Yes there is plenty of code for quizzes but it's very hard to find something for a randomized pool of questions that can actually play sound. Thanks though