Hello,
I am working on an application that once clicked will produce 10 random sentances. This is what I have so far, but I'm not sure where to go from here.
Please help? I know that I need it to be output, but I'm really struggling with this. I'm not sure what to do.
I am working on an application that once clicked will produce 10 random sentances. This is what I have so far, but I'm not sure where to go from here.
' String arrays for articles, nouns, verbs and prepositions Dim articles As String() = {"the", "a", "one", "some", "any"} Dim nouns As String() = {"boy", "girl", "dog", "town", "car"} Dim verbs As String() = {"drove", "jumped", "ran", "walked", "skipped"} Dim prepositions As String() = {"to", "from", "over", "under", "on"} Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim rndm As Random = New Random Dim Sentence As String = "" Dim myCounter As Integer Dim Sentences = {articles, nouns, verbs, prepositions} For myCounter = 0 To 9 Next Dim randomArticle = articles(rndm.Next(0, articles.Count)) Dim randomNoun = nouns(rndm.Next(0, articles.Count)) Dim randomVerb = verbs(rndm.Next(0, verbs.Count)) Dim randomPrep = prepositions(rndm.Next(0, prepositions.Count)) End Sub End Class
Please help? I know that I need it to be output, but I'm really struggling with this. I'm not sure what to do.
Last edited: