Hi,
I haven't coded anything in VB in years and I'm having trouble figuring out how to do the following:
I want to randomly pick an item from a numbered list (text file), where one of the two items associated to the number in the list will be displayed and the user has to then type in the other item, which will then be matched and tell them if it is right or wrong (and show the correct answer).
I'm thinking that a number has to be randomly generated from the list of numbers in the file and then the appropriate line in the file has to be read and the items in the line displayed, but I can't for the life of me remember how to do any of this.
If anyone could point me in the right direction, it would be greatly appreciated.
Thank you :)
I haven't coded anything in VB in years and I'm having trouble figuring out how to do the following:
I want to randomly pick an item from a numbered list (text file), where one of the two items associated to the number in the list will be displayed and the user has to then type in the other item, which will then be matched and tell them if it is right or wrong (and show the correct answer).
I'm thinking that a number has to be randomly generated from the list of numbers in the file and then the appropriate line in the file has to be read and the items in the line displayed, but I can't for the life of me remember how to do any of this.
If anyone could point me in the right direction, it would be greatly appreciated.
Thank you :)
Comment