dim words() as string = {"chocolate", "bread", "curry", "burger", "noodles", "banana"}
dim randomValue as integer
randomValue = GetRandom(0,6)
randomWord = words(randomValue)
Console.WriteLine("A random word has been generated, please guess a letter from the 'secret'word")
Console.WriteLine(randomWord)
input = console.readline()
console.writeline("well done, you guessed all of the letters from the word... The word was" & randomWord)
console.writeline("I'm sorry, you guessed incorrectly. Try again")
Public Function GetRandom(ByVal Min As Integer, ByVal Max As Integer) As Integer
Static Generator As System.Random = New System.Random()
Return Generator.Next(Min, Max)