I supose you're going to use an array for the inputted strings?
I'm not 100% sure, haven't coded in vb.net for ages. It's all java now.
I would know how to do it with the strings already there but not if you don't know what they are.
You could ask them to input the amount of strings they are going to insert and hold it in a variable such as ins then do
Dim num As Integer = random.Next(ins)
In java if I used an array I would just do array.length to find how many elements are in the array instead of asking them to input how many they are going to insert.
Not sure how to do that in vb.net though think you need to use upperbounds method.
I'm not 100% sure, haven't coded in vb.net for ages. It's all java now.
I would know how to do it with the strings already there but not if you don't know what they are.
You could ask them to input the amount of strings they are going to insert and hold it in a variable such as ins then do
Dim num As Integer = random.Next(ins)
In java if I used an array I would just do array.length to find how many elements are in the array instead of asking them to input how many they are going to insert.
Not sure how to do that in vb.net though think you need to use upperbounds method.