Visual Basic Generating Random Letters

The sample code for generating random letters in the Visual Basic programming language is given below.

Module ModuleTest Sub Main() Dim random As Random = New Random() Dim letters As String = "abcdefghijklmnopqrstuvwxyz" Dim num As Int16 = random.Next(0, 26) Console.WriteLine(letters.Substring(num, 1)) Console.ReadLine() End Sub End Module


You May Interest

Visual Basic String Making Lowercase

Visual Basic Non-Restart Check If Application is Open

Visual Basic Using String ToCharArray

Visual Basic Getting Last Character of String

Visual Basic String Using StartsWith